R
Robert5833
Good day all;
Vista Business / Access 2007
I am trying to manipulate a string of data from a barcode scanner, which
will then be appended to a table. The RS232 device is using a wedge
interface. The string to be manipulated is Text. The data string is as
follows:
090723103216*RRL*232*ALL
The string text is comprised of the following elements:
090723 date stamp (always 6 characters)
103216 time stamp (always 6 characters)
* data string sequence break(s) (scanner always 3, always *)
RRL user defined prefix (ASCII)
232 barcode information (can be any number of alpha/num characters)
ALL user defined suffix (ASCII) (know it’s a reserved word, but it’s a
stored value, not used for VBA purposes)
The parsed string text will be appended to a table as follows:
Table: tblBarcodeData
Fields (attributes date/time/num/txt as appropriate): fldDate, fldTime,
fldPfx, fldScnNum, fldSfx
I am able to parse the data using SQL as follows:
SELECT lnkSprdshtBarcodeUpload.F1, Mid([F1],4,3) AS NewP_Date, Mid([F1],7,6)
AS NewP_Time, Mid([F1],14,3) AS NewP_Pfx, Right([F1],4) AS NewP_Sfx_1,
Left([NewP_Sfx_1],3) AS NewP_Sfx
FROM lnkSprdshtBarcodeUpload;
Yields; 723, 103216, RRL, 232, and ALL
What I cannot figure out how to do is insert the date and time special
characters ( / and : ) to result in the following:
7/23
10:32:16
Any advice or examples (SQL or VBA) would be greatly appreciated, and thank
you in advance for your help.
Robert
Vista Business / Access 2007
I am trying to manipulate a string of data from a barcode scanner, which
will then be appended to a table. The RS232 device is using a wedge
interface. The string to be manipulated is Text. The data string is as
follows:
090723103216*RRL*232*ALL
The string text is comprised of the following elements:
090723 date stamp (always 6 characters)
103216 time stamp (always 6 characters)
* data string sequence break(s) (scanner always 3, always *)
RRL user defined prefix (ASCII)
232 barcode information (can be any number of alpha/num characters)
ALL user defined suffix (ASCII) (know it’s a reserved word, but it’s a
stored value, not used for VBA purposes)
The parsed string text will be appended to a table as follows:
Table: tblBarcodeData
Fields (attributes date/time/num/txt as appropriate): fldDate, fldTime,
fldPfx, fldScnNum, fldSfx
I am able to parse the data using SQL as follows:
SELECT lnkSprdshtBarcodeUpload.F1, Mid([F1],4,3) AS NewP_Date, Mid([F1],7,6)
AS NewP_Time, Mid([F1],14,3) AS NewP_Pfx, Right([F1],4) AS NewP_Sfx_1,
Left([NewP_Sfx_1],3) AS NewP_Sfx
FROM lnkSprdshtBarcodeUpload;
Yields; 723, 103216, RRL, 232, and ALL
What I cannot figure out how to do is insert the date and time special
characters ( / and : ) to result in the following:
7/23
10:32:16
Any advice or examples (SQL or VBA) would be greatly appreciated, and thank
you in advance for your help.
Robert