N
nick
Hi there, I have a screen that allows the user to enter in the values to go
into a table. When they click a button I want to execute an insert using the
values they entered. Should it look something like this?
Private Sub Save_Project_Click()
DoCmd.RunSQL = "INSERT INTO Project_Main (Project_Number, Is_Project,
Client_Code, Anecdotal_Name, Date_Created, Is_Active)" & _
"Values (" & Project_Number & ", " & Is_Project & ", " &
Client_Code & ", " & Anecdotal_Name & ", " & Date & ", " &
Is_Active & ")"
End Sub
This gives me an "Arguement not optional" Error (449). Can anyone please
tell me what I'm doing wrong here?
Thanks
Nick
into a table. When they click a button I want to execute an insert using the
values they entered. Should it look something like this?
Private Sub Save_Project_Click()
DoCmd.RunSQL = "INSERT INTO Project_Main (Project_Number, Is_Project,
Client_Code, Anecdotal_Name, Date_Created, Is_Active)" & _
"Values (" & Project_Number & ", " & Is_Project & ", " &
Client_Code & ", " & Anecdotal_Name & ", " & Date & ", " &
Is_Active & ")"
End Sub
This gives me an "Arguement not optional" Error (449). Can anyone please
tell me what I'm doing wrong here?
Thanks
Nick