Hi everyone,
Its my first thread here!
Let me describe the database Im doing...
Consist of 4 tables - customer, order, supplier and product
Customer can have many orders, one order can only have one product, and a supplier can supply many products.
What I want to do:
Create an Order Form in which the Order ID field automatically has a sequential Order ID.
Lets say the Order Table's last value was ORD125.
The form would then put a sequential value in Order ID of ORD126.
The rest of the fields in the form would be filled by the customer.
What Ive done:
Ive created a form and set the Data Entry to "Yes" so that the form is blank.
Ive created one query to take the Higest Order ID from the order table (lets say ORD123), and then ive created a second query which uses the first query to generate a sequential ID.
i.e.:
First query: ORD123
Second Query: ORD123 +1 = ORD124 (I did this with "ORD" & RIGHT etc.)
I simply linked the OrderID field from the Form to the second query so that the sequential id appears, but I keep getting "Name?"
Thats the problem really, any help would be really appreciated!
Thanks so much!
Its my first thread here!
Let me describe the database Im doing...
Consist of 4 tables - customer, order, supplier and product
Customer can have many orders, one order can only have one product, and a supplier can supply many products.
What I want to do:
Create an Order Form in which the Order ID field automatically has a sequential Order ID.
Lets say the Order Table's last value was ORD125.
The form would then put a sequential value in Order ID of ORD126.
The rest of the fields in the form would be filled by the customer.
What Ive done:
Ive created a form and set the Data Entry to "Yes" so that the form is blank.
Ive created one query to take the Higest Order ID from the order table (lets say ORD123), and then ive created a second query which uses the first query to generate a sequential ID.
i.e.:
First query: ORD123
Second Query: ORD123 +1 = ORD124 (I did this with "ORD" & RIGHT etc.)
I simply linked the OrderID field from the Form to the second query so that the sequential id appears, but I keep getting "Name?"
Thats the problem really, any help would be really appreciated!
Thanks so much!