Benjamin Bolduc
Registered User.
- Local time
- Today, 08:07
- Joined
- Jan 4, 2002
- Messages
- 169
Hi everyone,
I'm having trouble with the AddNew record method. Access help only has examples of code for user input and I can't seem to find specifically what I'm looking for in the archives.
I have a combobox on a form that is linked to a query that checks for low product inventory. (Basically it just lists all the products whose balance is below the reorder level). I have it set up so that when I double click on one of the items, it sends all of the items on the list with similar suppliers to a premade Purchase Order Report.
Now here's my problem...
I need to create a new record in the "Orders" table for each item BEFORE it is sent to the report. There could be any number of items being selected at a time. The problem is that some of fields that will make the new record are taken right from the forms query and some need to be user input.
Here are some fields from the "Low Inventory" records that need to go into a new record in the "Orders" table:
UPC# - (Primary Key, This will be entered automatically)
Quantity Ordered- (This could be different on every order, so it needs user input)
After, I'll base the report on the new record so Ill have a functional Purchase Order. I can do all that, I just need help with the AddNew syntax. Maybe a Do-Loop is necessary? I don't know, that's why I'm asking you wonderful people
Any help you guys could give me would be greatly appreciated. If you need me to clarify anything, please don't hesitate to ask.
Thanks!
Ben
I'm having trouble with the AddNew record method. Access help only has examples of code for user input and I can't seem to find specifically what I'm looking for in the archives.
I have a combobox on a form that is linked to a query that checks for low product inventory. (Basically it just lists all the products whose balance is below the reorder level). I have it set up so that when I double click on one of the items, it sends all of the items on the list with similar suppliers to a premade Purchase Order Report.
Now here's my problem...
I need to create a new record in the "Orders" table for each item BEFORE it is sent to the report. There could be any number of items being selected at a time. The problem is that some of fields that will make the new record are taken right from the forms query and some need to be user input.
Here are some fields from the "Low Inventory" records that need to go into a new record in the "Orders" table:
UPC# - (Primary Key, This will be entered automatically)
Quantity Ordered- (This could be different on every order, so it needs user input)
After, I'll base the report on the new record so Ill have a functional Purchase Order. I can do all that, I just need help with the AddNew syntax. Maybe a Do-Loop is necessary? I don't know, that's why I'm asking you wonderful people
Any help you guys could give me would be greatly appreciated. If you need me to clarify anything, please don't hesitate to ask.
Thanks!
Ben
Last edited: