Hi Dave , here is the code as you suggested but it fails at the line
CurrentDb.Execute
'Command Button to submit all user selections to a report.
Private Sub CboSubmit_Click()
'=====================================================
'Code from Dave Hargis, Mocrosoft Access MVP inserted to
'Save the input number to the table Temp in the field NewNumber.
'=====================================================
Dim strSQL As String
strSQL = "INSERT INTO Temp [NewNumber] SELECT """ & Me.txtNewNumber & """
as Expr1;"
CurrentDb.Execute strSQL, dbFailOnError
'=====================================================
the user input is shown but the last line of the code is in yellow....
please advise. Patricia
Klatuu said:
When you want it to happen will determine where you put the code. The name
are made up as example purposes.
& """ As Expr1;"
Currentdb.Execute strSQL, dbFailOnError