Ben_Entrew
Registered User.
- Local time
- Today, 09:01
- Joined
- Dec 3, 2013
- Messages
- 177
Hi all,
I want to create a table via SQL. This table should contain records that
begin after a specified date.
Something is wrong with this syntax.
Can someone please help me out here?
Thanks in advance.
Regards,
Ben
I want to create a table via SQL. This table should contain records that
begin after a specified date.
Something is wrong with this syntax.
Can someone please help me out here?
Thanks in advance.
Regards,
Ben
Code:
Sub TEST()
Dim t As Date
t = 1 / 3 / 2014
DoCmd.RunSQL "SELECT TRP.Customer, TRP.Material, TRP.Product_Class, TRP.TRP as Price, TRP.Valid_from, " & _
" TRP.Valid_to INTO [New_Prices] " & _
" FROM TRP " & _
" WHERE (((TRP.Customer)= 1223) AND ((TRP.Valid_from)>#t#))"
End Sub
Last edited: