Hi Vince,
The problem is in your SQL string.
Remember, when working with ADO/DAO and passing SQL strings, they are read as given.
You have entered '(tblKassatickets.Volgnummer)=[Forms]![frmOpvolgingKassaticketsFoutief]![cboTicketSelector]'
in your WHERE clause, which would work fine in the Access Query Designer, because it would parse it for you, but in ADO/DAO you cant do that.
Use this instead:
sSQL = "SELECT tblKassatickets.Volgnummer, tblKassatickets.Datum, tblKassatickets.NaamAgent, tblKassatickets.Uur, tblKassatickets.NrTicket, tblKassatickets.Bedrag, tblKassatickets.AantalCollies, tblKassatickets.NrKassa, tblKassatickets.Opmerkingen FROM tblKassatickets WHERE (((tblKassatickets.Volgnummer)=" & cboTicketSelector & "));"
I hope this helps, post a message with the results.
Best Regards,
Rob
|