R
Reinhard
I have the following code in an Access 2003 form that creates an
auto-incrementing requisition number. It works when operating on an Access
2003 database. I am in the process of moving this database to SQL server and
using MS Access 2003 as the frontend for now, but the code requisition number
is null when the code is executed in this environment. Is there something
special I need to do when the table is linked to a backend SQL database?
Private Sub PurchasingAgent_AfterUpdate()
'Generate Requisition Number
Me![ReqNoInfo] = Right(DatePart("yyyy", Date), 2) &
[Forms]![frmRequisition]![Acronym] & "-" & [ReqNumber]
End Sub
auto-incrementing requisition number. It works when operating on an Access
2003 database. I am in the process of moving this database to SQL server and
using MS Access 2003 as the frontend for now, but the code requisition number
is null when the code is executed in this environment. Is there something
special I need to do when the table is linked to a backend SQL database?
Private Sub PurchasingAgent_AfterUpdate()
'Generate Requisition Number
Me![ReqNoInfo] = Right(DatePart("yyyy", Date), 2) &
[Forms]![frmRequisition]![Acronym] & "-" & [ReqNumber]
End Sub