Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Openform Statement???

Status
Not open for further replies.

vinanti

Programmer
Mar 7, 2003
26
IN
hi guys,

Thnks for the help i have always been provided on time.

I am again stuck up badly.

I have to open a form from another form.
I want to pass an argument --- compulsory and at the same time show records only of the supplier name provided by the user.
I am using the foll statemnet:
DoCmd.OpenForm "mast", acNormal, , "[supplier name] =Forms!mod_frm!supp_nm" , , , modvar
This works fine.
but i face a problem when i try to replace forms!mod-frm!supp_nm with a variable=supp.

It is a very essential thing for my program as i want to further add features to it.

Plz. help

thnks in advance
bye,
vinanti
 
I believe it should read:

DoCmd.OpenForm "mast", acNormal, , "[supplier name] = '" & & supp & "'", , , modvar

****************************
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. (Albert Einstein)

Robert L. Johnson III
MCSA, CNA, MCP, Network+, A+
w: robert.l.johnson.iii@citigroup.com
h: wildmage@tampabay.rr.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top