Hi Guys,
Can you help please? I have entered the following SQL statement in my sub and I got the following error:
Where have I gone wrong?
Thanks very much
Can you help please? I have entered the following SQL statement in my sub and I got the following error:
The SELECT statement includes a reserved word or argument name that is missspelled or missing, or the punctuation is incorrect
Where have I gone wrong?
Code:
Dim MySQL As String
MySQL = "SELECT XRayedConsignments.[EntryDate/Time], XRayedConsignments.EntryTime, XRayedConsignments.AWBNumber, XRayedConsignments.Pieces, XRayedConsignments.Weight, XRayedConsignments.OpsIDNumber, XRayedConsignments.Mail, XRayedConsignments.Transhipment, XRayedConsignments.Iberia, XRayedConsignments.UnitedAirlines, XRayedConsignments.ELAL, XRayedConsignments.AirMauritus, FROM XRayedConsignments"
MyRecordset.Open MySQL
Thanks very much