Hello;
I am reading a file that is ODBC-linked directly to an AS400 machine in a VBscript program within Access. One of the fields in this file automatically gets defined as a Binary data type in the Access table. On the AS400, the field contains a 6-byte date: 080822 (fmt= yymmdd). When I look at this through the VBscript debugger, I can see that the values are as follows:
value(0): 240
value(1): 248
value(2): 240
value(3): 248
value(4): 242
value(5): 242
How can I convert these values into their decimal equivalents of 0, 8, 0, 8, 2, 2?
Is it as simple as subtracting 240 from each one? And, if so, what is the technical reason behind 240?
thanks,
Gregg
I am reading a file that is ODBC-linked directly to an AS400 machine in a VBscript program within Access. One of the fields in this file automatically gets defined as a Binary data type in the Access table. On the AS400, the field contains a 6-byte date: 080822 (fmt= yymmdd). When I look at this through the VBscript debugger, I can see that the values are as follows:
value(0): 240
value(1): 248
value(2): 240
value(3): 248
value(4): 242
value(5): 242
How can I convert these values into their decimal equivalents of 0, 8, 0, 8, 2, 2?
Is it as simple as subtracting 240 from each one? And, if so, what is the technical reason behind 240?
thanks,
Gregg
Comment