Hi Again, Firstly, I like to thanks people who tough me a lot on how to use access programming, it does help me.
I do have another question that I hope I can get an answer.
I want to insert a date into a table (log) after I click a button in a form. but for some reason, I can't do it.
here is the script. please assist.
=========================
Private Sub Add_Record_Click()
Dim strsql As String
dd = Now()
strsql = "Insert Into Tbl_Project_Name(Log_ray) Values (dd)"
DoCmd.GoToRecord , , acNewRec
Exit_Add_Record_Click:
End Sub
=========================
Many thanks again.
wongray
I do have another question that I hope I can get an answer.
I want to insert a date into a table (log) after I click a button in a form. but for some reason, I can't do it.
here is the script. please assist.
=========================
Private Sub Add_Record_Click()
Dim strsql As String
dd = Now()
strsql = "Insert Into Tbl_Project_Name(Log_ray) Values (dd)"
DoCmd.GoToRecord , , acNewRec
Exit_Add_Record_Click:
End Sub
=========================
Many thanks again.
wongray