Hi,
I have a form which RECORD SOURCE (you can find it in the form design) consists the following query :
SELECT DOP_new.[Barcode #], DOP_new.[Deal Name], DOP_new.[Client Name], DOP_new.[Reference #], DOP_new.[Document Date], DOP_new.[Document Type], DOP_new.[Number of Documents], DOP_new.[Additional Comments], DOP_new.[From Date], DOP_new.[To Date], DOP_new.[Box #], DOP_new.[Of #], [tbl_Core Non-Core].[File Type], [tbl_Core Non-Core].Scan, DOP_new.[TD Account #], DOP_new.[Printed By], FormatDateTime([Please Date of Shipment (mm/dd/yyyy)]) AS DOS
FROM [tbl_Core Non-Core] INNER JOIN DOP_new ON [tbl_Core Non-Core].[Document Type] = DOP_new.[Document Type]
WHERE (((DOP_new.[Barcode #])=Format([Please re-enter bar code #],"0000")) AND (([tbl_Core Non-Core].[File Type])="Security") AND ((DOP_new.[Date of Shipment]) Is Null))
ORDER BY DOP_new.[Deal Name];
the above query will extract data based on the entered information, Barcode # and DoS
I would like to check if the entered Barcode # and DoS are valid
before the form opens.
what i mean by valid is
Barcode # does exist in the database.
DoS is a valid date and must be >= current date.
please advise
thanks
Alice
I have a form which RECORD SOURCE (you can find it in the form design) consists the following query :
SELECT DOP_new.[Barcode #], DOP_new.[Deal Name], DOP_new.[Client Name], DOP_new.[Reference #], DOP_new.[Document Date], DOP_new.[Document Type], DOP_new.[Number of Documents], DOP_new.[Additional Comments], DOP_new.[From Date], DOP_new.[To Date], DOP_new.[Box #], DOP_new.[Of #], [tbl_Core Non-Core].[File Type], [tbl_Core Non-Core].Scan, DOP_new.[TD Account #], DOP_new.[Printed By], FormatDateTime([Please Date of Shipment (mm/dd/yyyy)]) AS DOS
FROM [tbl_Core Non-Core] INNER JOIN DOP_new ON [tbl_Core Non-Core].[Document Type] = DOP_new.[Document Type]
WHERE (((DOP_new.[Barcode #])=Format([Please re-enter bar code #],"0000")) AND (([tbl_Core Non-Core].[File Type])="Security") AND ((DOP_new.[Date of Shipment]) Is Null))
ORDER BY DOP_new.[Deal Name];
the above query will extract data based on the entered information, Barcode # and DoS
I would like to check if the entered Barcode # and DoS are valid
before the form opens.
what i mean by valid is
Barcode # does exist in the database.
DoS is a valid date and must be >= current date.
please advise
thanks
Alice