In the Not in List of a Combo box I have this code and it work to add the value with 1 problem the Part number field has an input mask 0000\-99999;;_
the Part Number are all 0000-00000 4 digits - 5 digits but this code drops the - and makes it a 9 digit number. What do I need to do to make it follow the input mask?
intAnswer = MsgBox("This Part " & Chr(34) & NewData & Chr(34) & " is not currently entered." & vbCrLf & "Would you like to add it to the list now?", vbQuestion + vbYesNo, "CCH Auxiliary")
If intAnswer = vbYes Then
strSQL = "INSERT INTO [Tble-Parts History]([Part Number]) " & "VALUES ('" & NewData & "');"
thanks for the help
jon
the Part Number are all 0000-00000 4 digits - 5 digits but this code drops the - and makes it a 9 digit number. What do I need to do to make it follow the input mask?
intAnswer = MsgBox("This Part " & Chr(34) & NewData & Chr(34) & " is not currently entered." & vbCrLf & "Would you like to add it to the list now?", vbQuestion + vbYesNo, "CCH Auxiliary")
If intAnswer = vbYes Then
strSQL = "INSERT INTO [Tble-Parts History]([Part Number]) " & "VALUES ('" & NewData & "');"
thanks for the help
jon