G
gmenon100 via AccessMonster.com
Hi all,
I have a access project for attedance backend is SQL.
I have a mdb/vba code which needs to be converted into sql,
can anone help me formulate this:
Private Sub Command4_Click()
Dim StrSQL As String
StrSQL = "INSERT INTO Attend ( AttStudent, AttDate, AttType ) " _
& "SELECT " & Me![scrStudent] & " AS F1, #" _
& Format(Me![Text0], "mm/dd/yy") & "# AS F2, " & Me![scrAttend] & " AS F3;"
DoCmd.RunSQL StrSQL
End Sub
In short, I am trying to insert /append values from the form to a exiting
table.
Thank you in advance
Gmenon
I have a access project for attedance backend is SQL.
I have a mdb/vba code which needs to be converted into sql,
can anone help me formulate this:
Private Sub Command4_Click()
Dim StrSQL As String
StrSQL = "INSERT INTO Attend ( AttStudent, AttDate, AttType ) " _
& "SELECT " & Me![scrStudent] & " AS F1, #" _
& Format(Me![Text0], "mm/dd/yy") & "# AS F2, " & Me![scrAttend] & " AS F3;"
DoCmd.RunSQL StrSQL
End Sub
In short, I am trying to insert /append values from the form to a exiting
table.
Thank you in advance
Gmenon