I have 6 digit varchar's stored in a table such as 030405, these are always 6 characters.
I have created a form and a combo list box. In the combo list box a person 6 digit number is displyed along with their name. New_Person has a data type of String
Code
New_Person = [Forms]![New_Person]![New_Number]
Set param1 = cmd.CreateParameter("", adnChar, adParamReturnValue, 100)
cmd.Parameters.Append param1
param1.value = New_Person
The value of New_Person is not always 6 characters (it is in the table), it seems to remove any leading 0's. I need these to remain. I have tried a few different data types but not with much use.
Any ideas?
Thanks in advance.
I have created a form and a combo list box. In the combo list box a person 6 digit number is displyed along with their name. New_Person has a data type of String
Code
New_Person = [Forms]![New_Person]![New_Number]
Set param1 = cmd.CreateParameter("", adnChar, adParamReturnValue, 100)
cmd.Parameters.Append param1
param1.value = New_Person
The value of New_Person is not always 6 characters (it is in the table), it seems to remove any leading 0's. I need these to remain. I have tried a few different data types but not with much use.
Any ideas?
Thanks in advance.