mamradzelvy
Member
- Local time
- Today, 23:23
- Joined
- Apr 14, 2020
- Messages
- 145
Hi,
I'm trying to make a query which i would later export to excel, however i got a form where i want to be able to give selection options such as date, yes/no fields, client name etc.
Right now I'm trying to make just the client name combo box work with the query, but i think i got my code wrong, i tried various adaptations, but neither has worked thus far.
for instance
or
How would i write the query syntax properly to make this work?
I'm trying to make a query which i would later export to excel, however i got a form where i want to be able to give selection options such as date, yes/no fields, client name etc.
Right now I'm trying to make just the client name combo box work with the query, but i think i got my code wrong, i tried various adaptations, but neither has worked thus far.
Code:
SELECT Tabule1.TabKlient, Tabule1.TabOsoba, Tabule1.TabItem, Tabule1.TabQty, Tabule1.TabNote, Tabule1.TabAddedBy, Tabule1.TabDate
FROM Tabule1
WHERE TabKlient LIKE '" & Forms.formExportExcel.xKlientSelection & "';
or
Code:
SELECT Tabule1.TabKlient, Tabule1.TabOsoba, Tabule1.TabItem, Tabule1.TabQty, Tabule1.TabNote, Tabule1.TabAddedBy, Tabule1.TabDate, Tabule1.TabStatus, Tabule1.ID
FROM Tabule1
WHERE (((Tabule1.TabKlient)=[Formuláře]![formExportExcel]![xKlientSelection]));
How would i write the query syntax properly to make this work?