Hello,
Pretty much what the title says. I can use SQL to create a column in an existing table but just can't get it to populate the date and time in that new column.
Here's my code:
Function AddtblDate()
Dim tblname As String
tblname = "2006-12 Demographic Table"
strSQL = "ALTER TABLE [" & tblname & "] ADD F1 Timestamp"
DoCmd.RunSQL strSQL
End Function
Thank you.
Pretty much what the title says. I can use SQL to create a column in an existing table but just can't get it to populate the date and time in that new column.
Here's my code:
Function AddtblDate()
Dim tblname As String
tblname = "2006-12 Demographic Table"
strSQL = "ALTER TABLE [" & tblname & "] ADD F1 Timestamp"
DoCmd.RunSQL strSQL
End Function
Thank you.