M
Microsoft Access
I have setup my table so that the invoiceID would autonumber. The issue I am
trying to figure out is what to do when I want to update a row. I figure
there are two options and i was curious what the best would be or if there
is a third I am not thinking of
So the system will initially create an invoice. To update that invoice I
could:
a) do and update query as UPDATE invoice SET Name=..., Cost=...., the
problem with this one is that it is cumbersome. The invoice is created from
a fairly extensive select query and so many select queries would have to be
created for each individual field that needs to be updated since Access
doesn't allow SET (Name, Cost) (SELECT Name1, Cost1...)
b) The option that I can't get to work is to capture the InvoiceID before
deleting it and then recreate the invoice with the select query, this time
inserting the invoiceID that i copied. However it doesn't seem that Access
allows you to insert into an autonumber field.
Any thoughts? Thanks.
Access 2007
trying to figure out is what to do when I want to update a row. I figure
there are two options and i was curious what the best would be or if there
is a third I am not thinking of
So the system will initially create an invoice. To update that invoice I
could:
a) do and update query as UPDATE invoice SET Name=..., Cost=...., the
problem with this one is that it is cumbersome. The invoice is created from
a fairly extensive select query and so many select queries would have to be
created for each individual field that needs to be updated since Access
doesn't allow SET (Name, Cost) (SELECT Name1, Cost1...)
b) The option that I can't get to work is to capture the InvoiceID before
deleting it and then recreate the invoice with the select query, this time
inserting the invoiceID that i copied. However it doesn't seem that Access
allows you to insert into an autonumber field.
Any thoughts? Thanks.
Access 2007