Enter Parameter?

K

kremesch

Every time I use a command button to close a form that has cascading combos
in it, I receive a dialog box that asks me to enter a parameter.
This never happened in A97. I'm using AXP now, perhaps I need to modify
something differently?

the code behind the button is:
.....
doCmd.Close acForm, stDocName

My queries in the boxes are:
combo1(query):
SELECT
.[field1]
FROM


combo1 (code):
with me.combo2
.value = null
.requery
end with

combo2 (query):
SELECT
.[field2],
.[field1]
FROM

WHERE
.[field1] Like [Form]![NameOfForm]![combo1]
 
K

kremesch

Thank you, that solved my problem.

Van T. Dinh said:
It is a bug.

See the Microsoft Knowledge Base article:

http://support.microsoft.com/?id=811860

--
HTH
Van T. Dinh
MVP (Access)


kremesch said:
Every time I use a command button to close a form that has cascading combos
in it, I receive a dialog box that asks me to enter a parameter.
This never happened in A97. I'm using AXP now, perhaps I need to modify
something differently?

the code behind the button is:
....
doCmd.Close acForm, stDocName

My queries in the boxes are:
combo1(query):
SELECT
.[field1]
FROM


combo1 (code):
with me.combo2
.value = null
.requery
end with

combo2 (query):
SELECT
.[field2],
.[field1]
FROM

WHERE
.[field1] Like [Form]![NameOfForm]![combo1]
 

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

Similar Threads


Top