databasedonr
Registered User.
- Local time
- Today, 15:17
- Joined
- Feb 13, 2003
- Messages
- 163
Hi folks,
I am trying to update a field that contains position number information. Position numbers are 8 characters (all numbers) and begin with either two or three zeros as placeholders.
When I update the field, the preceeding zeros are all dropped. Here's the bit of code I use:
Dim strNewBF As String * 8
Dim strMember As String
strNewBF = Space(8)
strNewBF = Me.cboBackFill.Value
strMember = "UPDATE tblMember SET POSNO = " & strNewBF & " WHERE MemberID = " & Me.MemberID
DoCmd.RunSQL strMember
I can check my string in break mode, and it is indeed 8 characters long, with the proceeding zeros, but those zeros are dropped when the field is updated.
Typical position numbers are 00035434 and 00130754 ....
Thanks in advance for suggestions....
I am trying to update a field that contains position number information. Position numbers are 8 characters (all numbers) and begin with either two or three zeros as placeholders.
When I update the field, the preceeding zeros are all dropped. Here's the bit of code I use:
Dim strNewBF As String * 8
Dim strMember As String
strNewBF = Space(8)
strNewBF = Me.cboBackFill.Value
strMember = "UPDATE tblMember SET POSNO = " & strNewBF & " WHERE MemberID = " & Me.MemberID
DoCmd.RunSQL strMember
I can check my string in break mode, and it is indeed 8 characters long, with the proceeding zeros, but those zeros are dropped when the field is updated.
Typical position numbers are 00035434 and 00130754 ....
Thanks in advance for suggestions....