D
Dan Ford via AccessMonster.com
First time poster - been lurking for some time. Great site.
I have a database to control shipping process and create Bill of lading.
We have had issues in the past where the shipping clerks have loaded more
than one customers freight into the container. We have a few customers
where this is okay, but as a rule, it is not. I want to stop this by
validating the customer number being loaded.
Shipping is now scanning a 2D PDF bar code on each package as they load it.
The fields on bcode are Customer(num), Shipper(num), CaseNumber(text), and
CustOrdNumber(text).
The master form (BillofLading) captures date, bill of lading (autonumber +
PK), container#, carrier. The subform (BillofLadingSForm) captures the
bcode info above with CaseNumber as PK.
Customer table (tblCustomer) has field Commingle (Y/N) to ID when customers
can be loaded together.
How can I write a DLookup on BeforeUpdate field Customer of the subform
where if the previous record [Customer] for the bill of lading being loaded
does not match the current record [Customer] and the tblCustomer.Commingle
= false, then it will generate a message stating that the customers cannot
be commingled?
I am good with queries and macros, but a little bit green with VB. I know
what to do, just not quite sure how to do it.
Any help would be greatly appreciated.
I have a database to control shipping process and create Bill of lading.
We have had issues in the past where the shipping clerks have loaded more
than one customers freight into the container. We have a few customers
where this is okay, but as a rule, it is not. I want to stop this by
validating the customer number being loaded.
Shipping is now scanning a 2D PDF bar code on each package as they load it.
The fields on bcode are Customer(num), Shipper(num), CaseNumber(text), and
CustOrdNumber(text).
The master form (BillofLading) captures date, bill of lading (autonumber +
PK), container#, carrier. The subform (BillofLadingSForm) captures the
bcode info above with CaseNumber as PK.
Customer table (tblCustomer) has field Commingle (Y/N) to ID when customers
can be loaded together.
How can I write a DLookup on BeforeUpdate field Customer of the subform
where if the previous record [Customer] for the bill of lading being loaded
does not match the current record [Customer] and the tblCustomer.Commingle
= false, then it will generate a message stating that the customers cannot
be commingled?
I am good with queries and macros, but a little bit green with VB. I know
what to do, just not quite sure how to do it.
Any help would be greatly appreciated.