Hello. I Have a database with a table called ExpRecords. On this table there are multiple fields... You have Shipper, Shipper Address 1, Shipper Address 2, Shipper Phone etc... Then you have Receiver , Receiver Address 1 , Receiver Address 2 etc.
There are more... Like "load location" & then some various fields like Destination Country, Reference Number etc
I need to be able to Copy a shipment when creating new... My tables are linked by my companies reference number(AEC).
When i create a new shipment on the side of the form i have a "Duplicate Button" , a text-box where the user can enter the "AEC" to copy from & three check boxes..
The check boxes are Shipper / Receiver & Load Location
I need to be able to select those boxes.. Or two of three or all three & when command is pressed create a new record in my table, copying the Shipper(if selected) Receiver(If selected) etc. I have started a query Where im trying to get the results. In my query i have all fields selected & in the CRITERIA for anything that is relevant to shipper i have
Like IIf([Forms]![ExpNewShipment]![ExpCopyShipperCheck]=True,"Expr» [ExpRecords]![Type Of Shipper]","")
I dont understand the true/false part... IF the checkbox is selected then i need those results to be copied... If the check isnt selected then DONT copy them. Am i going about this the wrong way??
There are more... Like "load location" & then some various fields like Destination Country, Reference Number etc
I need to be able to Copy a shipment when creating new... My tables are linked by my companies reference number(AEC).
When i create a new shipment on the side of the form i have a "Duplicate Button" , a text-box where the user can enter the "AEC" to copy from & three check boxes..
The check boxes are Shipper / Receiver & Load Location
I need to be able to select those boxes.. Or two of three or all three & when command is pressed create a new record in my table, copying the Shipper(if selected) Receiver(If selected) etc. I have started a query Where im trying to get the results. In my query i have all fields selected & in the CRITERIA for anything that is relevant to shipper i have
Like IIf([Forms]![ExpNewShipment]![ExpCopyShipperCheck]=True,"Expr» [ExpRecords]![Type Of Shipper]","")
I dont understand the true/false part... IF the checkbox is selected then i need those results to be copied... If the check isnt selected then DONT copy them. Am i going about this the wrong way??