Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
DNI:
Load
Num(100000000*Rand(), '##.###.###') as NumeroDNI,
Mod(NumeroDNI, 23) as LetraDNI
AutoGenerate (20);
Field 'NumeroDNI' not found
I
Since you are still in the same load, you cannot really use the field name.... you have 2 options
1) Use the actual field script
DNI:
LOAD
Num(100000000*Rand(), '##.###.###') as NumeroDNI,
Mod(Num(100000000*Rand(), '##.###.###'), 23) as LetraDNI
AutoGenerate (20);
2) Employ Preceding load
DNI:
LOAD *,
Mod(NumeroDNI, 23) as LetraDNI;
LOAD
Num(100000000*Rand(), '##.###.###') as NumeroDNI
AutoGenerate (20);
Since you are still in the same load, you cannot really use the field name.... you have 2 options
1) Use the actual field script
DNI:
LOAD
Num(100000000*Rand(), '##.###.###') as NumeroDNI,
Mod(Num(100000000*Rand(), '##.###.###'), 23) as LetraDNI
AutoGenerate (20);
2) Employ Preceding load
DNI:
LOAD *,
Mod(NumeroDNI, 23) as LetraDNI;
LOAD
Num(100000000*Rand(), '##.###.###') as NumeroDNI
AutoGenerate (20);
The mod doesn't work. Thanks
What exactly are you hoping it would do?