JaredTaylor74
Technical User
hello.. 
i have a txtbox on an unbound form i want various input masks on, depending what was selected in a few previous lstboxes. i have my input mask strings in a table, i call those on the after update of the last lstbox. the correct input mask is in the txtbox. not a problem.
my problem is this...
because there are various input masks i can't set the field in my table to a static input mask.
once the form is complete, the user clicks a button and it open a recordset to add the data entered to the table. it adds it just fine, but the input mask doesn't follow it.
here are some examples:
MoldToolType MoldTypeInputMask
ARBURG MOLDSET 00-00
ARBURG SLIDE "00-000""A""/0B"
ARBURG SHUTTLE 000
here is my code:
for example the user enters an ARBURG SLIDE partnumber "15-061A/1B" they enter it just fine on the form (they don't type the - or the A or B, it's already there). but when it sends it to the table, the data that is sent is only the data they typed. "150611"
i want the data they don't type to be in the table too... how can i do that? (trying to send it to "MoldPartNumber")
Thanks,
Jared
i have a txtbox on an unbound form i want various input masks on, depending what was selected in a few previous lstboxes. i have my input mask strings in a table, i call those on the after update of the last lstbox. the correct input mask is in the txtbox. not a problem.
my problem is this...
because there are various input masks i can't set the field in my table to a static input mask.
once the form is complete, the user clicks a button and it open a recordset to add the data entered to the table. it adds it just fine, but the input mask doesn't follow it.
here are some examples:
MoldToolType MoldTypeInputMask
ARBURG MOLDSET 00-00
ARBURG SLIDE "00-000""A""/0B"
ARBURG SHUTTLE 000
here is my code:
Code:
Set rstMoldingHardware = DBEngine(0)(0).OpenRecordset("SELECT * from tblListMoldingHardware")
With rstMoldingHardware
.AddNew
![MoldPartNumber] = Me![txtNewPartNumber]
![MoldPartType] = Me![lstPartType].Value
![MoldMachineCompatability] = Me![lstMoldType].Value
.Update
.Close
End With
for example the user enters an ARBURG SLIDE partnumber "15-061A/1B" they enter it just fine on the form (they don't type the - or the A or B, it's already there). but when it sends it to the table, the data that is sent is only the data they typed. "150611"
i want the data they don't type to be in the table too... how can i do that? (trying to send it to "MoldPartNumber")
Thanks,
Jared