Sample
CurrentDb.Execute " SELECT tbl_itemledger.*, tbl_itemledger.ildate FROM tbl_itemledger
WHERE (((tbl_itemledger.ildate) Between Date()-7 And Date()));"
CurrentDb.Execute " SELECT tbl_itemledger.* FROM tbl_itemledger WHERE (((tbl_itemledger.ILuser)="alchai"));"
note: Those statements quoted with " need to be converted into ' instead as below.
CurrentDb.Execute " SELECT tbl_itemledger.* FROM tbl_itemledger WHERE (((tbl_itemledger.ILuser)='alchai'));"
Hope it helps.....
No comments:
Post a Comment