I m trying to insert record in table via following code on click event
Private Sub Command8_Click()
Dim conn As ADODB.Connection
Set conn = CurrentProject.Connection
conn.Execute "INSERT INTO master VALUES ( & forms!m!Text2& ", " & forms!m!text2& );"
when i give values here directly the code works...but when i want it to pick values from form..it doesnt..any idea..where i m wrong...
saleem
Private Sub Command8_Click()
Dim conn As ADODB.Connection
Set conn = CurrentProject.Connection
conn.Execute "INSERT INTO master VALUES ( & forms!m!Text2& ", " & forms!m!text2& );"
when i give values here directly the code works...but when i want it to pick values from form..it doesnt..any idea..where i m wrong...
saleem