Where condition not working with Acces 2003

Z

Zangel

Hi,

I created a database in Access 2000. When I updated to Access Xp, all
my macros were working. Since I updated to Access 2003, all macros
using a "Where Condition" are not working. Instead of opening the
selected record, it opens a blank form.

Here is an example of a where condition. The form names are ok.

[numéro]=[Forms]![Candidates: Trouver]![Candidates: Sous-formulaire
trouver]![numéro]

Does anyone know why in Access 2003 my macros with a where condition
are not working properly?

Thanks
 
M

Michel Walsh

Hi,


To reach a control in a sub form, try the official syntax:


FORMS!FormName!SubFormControlName.FORM.CONTROLS!ControlName


where all-cap words are keywords.



Hoping it may help,
Vanderghast, Access MVP
 
Z

Zangel

Thank Michel,

I was able to fix all my macro with the below format:

[number]=[Forms]![Main form]![Sub form].FORM.[number]

If it may help someone else, it seems that with Office 2003, you nee
to add .FORM. between subform name and field name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top