R
Roderick O'Regan
I've created a database for a client (Access 2003 and Win XP Pro).
This application has a facility for creating purchase orders. A user
creates a new PO and the system looks for the last number used in the
table called "Codes" and enters this in the form.
However, if the user decides to cancel the operation the code returns
to the Codes table and subtracts 1 from the existing number.
This is the relevant piece of code behind the Cancel button:
Set rs = db.OpenRecordset("Codes", dbOpenTable)
With rs
.Edit
.Fields("Last_Nbr_Assigned") = pcodevalue - 1
.Update
.Close
End With
However, the client now wants to split the database and Access Help
tells me that dbOpenTable can't work on a linked table sitting within
the backend database. But it doesn't tell me how to overcome that
problem.
How can I modify the Set =rs statement above, please, to allow the
form in the frontend to access the table "Codes" located in the
backend?
Roderick
This application has a facility for creating purchase orders. A user
creates a new PO and the system looks for the last number used in the
table called "Codes" and enters this in the form.
However, if the user decides to cancel the operation the code returns
to the Codes table and subtracts 1 from the existing number.
This is the relevant piece of code behind the Cancel button:
Set rs = db.OpenRecordset("Codes", dbOpenTable)
With rs
.Edit
.Fields("Last_Nbr_Assigned") = pcodevalue - 1
.Update
.Close
End With
However, the client now wants to split the database and Access Help
tells me that dbOpenTable can't work on a linked table sitting within
the backend database. But it doesn't tell me how to overcome that
problem.
How can I modify the Set =rs statement above, please, to allow the
form in the frontend to access the table "Codes" located in the
backend?
Roderick