shabbaranks
Registered User.
- Local time
- Today, 07:32
- Joined
- Oct 17, 2011
- Messages
- 300
Hi guys,
One thing that I am determined to master is using VBA to query with mysql, I know it can be done creating a query and I have done so and then tried to convert that to vba\mysql but it doesnt work. Im guessing its because Ive got my code incorrect - could anyone shed some light on whats incorrect with this statement please?
Ta muchly
One thing that I am determined to master is using VBA to query with mysql, I know it can be done creating a query and I have done so and then tried to convert that to vba\mysql but it doesnt work. Im guessing its because Ive got my code incorrect - could anyone shed some light on whats incorrect with this statement please?
Code:
Dim MySql As String
MySql = "SELECT TimesheetTable.sUser, TimesheetTable.[Task Date], TimesheetTable.Activity, TimesheetTable.Project, TimesheetTable.Hours, TimesheetTable.Description, TimesheetTable.sCostCode FROM TimesheetTable_"
MySql = "WHERE (((TimesheetTable.sCostCode) Like [MD-LAB])) OR (((TimesheetTable.sCostCode) Like [MT-LAB]))"
Ta muchly