Insert Records by checkbox

Soulfly

New member
Local time
Today, 08:52
Joined
Sep 13, 2006
Messages
9
Hi all,
I have an table with products, these products will be shown in an form. Now I want to place an checkbox for eacht product to select, at the end I want to place an button, when the user presses the button then all the product which are selected should be inserted into the table of orderinformation.

Does anyone have any tips to accomplish this?

Thanks in advance

Peter
 
Peter,

On the Command Button:

Code:
DoCmd.RunSQL "Insert Into orderinformation (ProductID, Field1, Field2) " & _
             "Select ProductID, ProductField1, ProductField2 " & _
             "From   Products " & _
             "Where  YourCheckBoxField"

hth,
Wayne
 

Users who are viewing this thread

Back
Top Bottom