I have this query
SELECT Book.BookNumber
FROM Book
WHERE (((Book.DateUpdated) Between [Forms]![INS-Export]![EXPLastDate] And [Forms]![INS-Export]![EXPNow]) AND ((Book.Status)="Sold"));
when I run it it works just fine , but when I use this Code in a button on the same form. it asks me to entry the dates.
Application.ExportXML acExportQuery, "Export Sold", " C:\Export\TestSold.xml"
I'm sure I'm missing something simple.
any ideas greatly apreciated
SELECT Book.BookNumber
FROM Book
WHERE (((Book.DateUpdated) Between [Forms]![INS-Export]![EXPLastDate] And [Forms]![INS-Export]![EXPNow]) AND ((Book.Status)="Sold"));
when I run it it works just fine , but when I use this Code in a button on the same form. it asks me to entry the dates.
Application.ExportXML acExportQuery, "Export Sold", " C:\Export\TestSold.xml"
I'm sure I'm missing something simple.
any ideas greatly apreciated