Hi everyone,
I need help with a database i'm working on. It is almost fully fonctionnal. I have a form that is a menu and this form contains command buttons. Most of them work, but I cannot get one to do what I want. I need to be able to click on the button and when I do it ask me a number (3 or 4 characters). It then displays a report with the contract numbers ending with this number I just entered. I tried entering a where condition with a like "*[Lot]" ([Lot] being the name of that field with the 3 or 4 characters), but this does not work. I have other buttons that work almost like this one, but I enter the whole contract number so it works fine. The problem is really when I need to find all the contracts ending with the same numbers.
Right now my where condition in access for the bouton is : Report![RapportProjet]![Contrat] like "*[Lot]" (my database is french so the names of the fields and tables are french) Lot is a text box in the report so when I open it, it asks me what value I want. I enter 104B (for example). I then want all of the entries with a contract number ([contrat]) ending with 104B to appear in the report and not the other entries.
I hope you understand my problem and will be able to help me.
David
I need help with a database i'm working on. It is almost fully fonctionnal. I have a form that is a menu and this form contains command buttons. Most of them work, but I cannot get one to do what I want. I need to be able to click on the button and when I do it ask me a number (3 or 4 characters). It then displays a report with the contract numbers ending with this number I just entered. I tried entering a where condition with a like "*[Lot]" ([Lot] being the name of that field with the 3 or 4 characters), but this does not work. I have other buttons that work almost like this one, but I enter the whole contract number so it works fine. The problem is really when I need to find all the contracts ending with the same numbers.
Right now my where condition in access for the bouton is : Report![RapportProjet]![Contrat] like "*[Lot]" (my database is french so the names of the fields and tables are french) Lot is a text box in the report so when I open it, it asks me what value I want. I enter 104B (for example). I then want all of the entries with a contract number ([contrat]) ending with 104B to appear in the report and not the other entries.
I hope you understand my problem and will be able to help me.
David
Comment