B
Bob Gardner
I have a form frmDrawings that contains a bound field
[ID]. The field is an autonumber with a 0000 format so
that "1" displays as "0001" and so on.
When a new record is created with the form I want to be
able to set the value of [DocumentID] on the form to 'DWG'
& [ID] to display "DWG0001". The control is updated but
displays and saves as "DWG1". How can I get it to read
as "DWG0001"?
Function AssignID()
On Error GoTo AssignID_Err
Forms!frmDrawings!DocumentID = 'DWG' & Forms!
frmDrawings!ID
AssignID_Exit:
Exit Function
AssignID_Err:
MsgBox Error$
Resume AssignID_Exit
End Function
Any help is appreciated.
Bob
[ID]. The field is an autonumber with a 0000 format so
that "1" displays as "0001" and so on.
When a new record is created with the form I want to be
able to set the value of [DocumentID] on the form to 'DWG'
& [ID] to display "DWG0001". The control is updated but
displays and saves as "DWG1". How can I get it to read
as "DWG0001"?
Function AssignID()
On Error GoTo AssignID_Err
Forms!frmDrawings!DocumentID = 'DWG' & Forms!
frmDrawings!ID
AssignID_Exit:
Exit Function
AssignID_Err:
MsgBox Error$
Resume AssignID_Exit
End Function
Any help is appreciated.
Bob