A
AHopper
I created a number using a "JobNumber", today's date and
the "StartTime" using the following: (JobNumber is on the
open form, StartTime is located by a DLookUp)
Dim Batch As Double
Batch = Format(Me.JobNumber, "0000") & Format
(Now, "mmddyy") & Format(StartTime, "hh")
The number created today is 018401130407 (Job 0184, Date
01 13 04 Time 07)
I stored the number in the database field "BatchNumber"
(field size is set for double, format 000000000000 and it
appears to be alright (I copy and pasted the number
directly from the database field to this message).
I now want to use the number in an unbound combo box as a
selection. The number appears correctly in the drop down
selection. I have the Bound Column set for this number,
however, when I select the number only 0184 displays in
the combo box and there is no error message.I have tried
no format for the combo box, standard format, general
number format, 000000000000 format and the display remains
the same.
Can I create a number that is usable this way?
If so how can I get it to fully display the number?
Can I refer to it and use it other places in the database?
Thank you in advance for your help.
Allan
the "StartTime" using the following: (JobNumber is on the
open form, StartTime is located by a DLookUp)
Dim Batch As Double
Batch = Format(Me.JobNumber, "0000") & Format
(Now, "mmddyy") & Format(StartTime, "hh")
The number created today is 018401130407 (Job 0184, Date
01 13 04 Time 07)
I stored the number in the database field "BatchNumber"
(field size is set for double, format 000000000000 and it
appears to be alright (I copy and pasted the number
directly from the database field to this message).
I now want to use the number in an unbound combo box as a
selection. The number appears correctly in the drop down
selection. I have the Bound Column set for this number,
however, when I select the number only 0184 displays in
the combo box and there is no error message.I have tried
no format for the combo box, standard format, general
number format, 000000000000 format and the display remains
the same.
Can I create a number that is usable this way?
If so how can I get it to fully display the number?
Can I refer to it and use it other places in the database?
Thank you in advance for your help.
Allan