M
Mike DeRemus
Probably a noob question, but here it goes........
What I am trying to do is set up a form, not too much unlike the one in
Northwind, where I can have orders input, but with a few extras features.
For example, I am trying to keep track of payment methods, like cash, check,
etc. I can not figure out the best way to do this. Should I have a separate
table hold the various payment methods like cash and check, or is there an
easier way to do this and just keep track of the information in the orders
table altogether? I have it set up now so that it would read into a combo
box from a PaymentMethod table, and store the values into the Orders table.
I can change the values, and they will be stored correctly in the Orders
table, but when I try to make a new order altogether, it says that required
information is missing. I looked, and nothing seemed to be marked required
in the table design view of PaymentMethod.
That problem is not as concerning to me as my next problem. Here is the big
question, what do you think is the best way to implement a field that will
auto increment, but is not the primary key? In other words, not only do I
want an OrderID, but would also like to have some unique number, preferably
auto generated, that would also identify the record. For instance, like a
WorkOrder number or ProcessOrder number. I know you can not have 2
autonumbers in the same table, so what is the best solution? Or better yet,
the simplest solution? For this, I had originally set up a seperate table
that was called PurchaseOrderTracking, which basically stored the OrderID
and then an autonumber (primarykey). (I know, probably poor design, but I'm
still fairly new so be gentle). I got this number to show up on the orders
form too(called PONumber), and when you do a new Order, it shows that it is
an (autonumber), but will not increment once the order is started like the
OrderID will. Anybody have any ideas, suggestions, or tips for a noob?
This is all done in Access 2000 with VBA. It is an Access application.
Any help would be appreciated.
Mike
What I am trying to do is set up a form, not too much unlike the one in
Northwind, where I can have orders input, but with a few extras features.
For example, I am trying to keep track of payment methods, like cash, check,
etc. I can not figure out the best way to do this. Should I have a separate
table hold the various payment methods like cash and check, or is there an
easier way to do this and just keep track of the information in the orders
table altogether? I have it set up now so that it would read into a combo
box from a PaymentMethod table, and store the values into the Orders table.
I can change the values, and they will be stored correctly in the Orders
table, but when I try to make a new order altogether, it says that required
information is missing. I looked, and nothing seemed to be marked required
in the table design view of PaymentMethod.
That problem is not as concerning to me as my next problem. Here is the big
question, what do you think is the best way to implement a field that will
auto increment, but is not the primary key? In other words, not only do I
want an OrderID, but would also like to have some unique number, preferably
auto generated, that would also identify the record. For instance, like a
WorkOrder number or ProcessOrder number. I know you can not have 2
autonumbers in the same table, so what is the best solution? Or better yet,
the simplest solution? For this, I had originally set up a seperate table
that was called PurchaseOrderTracking, which basically stored the OrderID
and then an autonumber (primarykey). (I know, probably poor design, but I'm
still fairly new so be gentle). I got this number to show up on the orders
form too(called PONumber), and when you do a new Order, it shows that it is
an (autonumber), but will not increment once the order is started like the
OrderID will. Anybody have any ideas, suggestions, or tips for a noob?
This is all done in Access 2000 with VBA. It is an Access application.
Any help would be appreciated.
Mike