M
Metzoid
Hi,
I have simple access database, I have two forms...first form creates a
criteria for data to be displayed on second form. i.e. based on selections
the recordsource for the second form is created and passed after opening the
form in the form of a sql statement select item1, item2, item3 from thetable
where item2=1 and item2>=3 etc. When I open this form using the first form
my access 2000 hangs and does nothing. As far as I can see I am creating the
sql statement correctly.
I have created a blank first form with a button on it which opens second
form and sets recordsource...this works perfectly.
But when I do it in my original form with list boxes and drop-downs to build
the sql statement and then click on the search button to produce the results
it hangs. I am mystified to why this is happening.
I have run debugging to find that the open form command line is passed but
when I reference the recordsource in the immediate window.. i get the
runtime error 2450 for not open message..its like it hasn't opened the form
for some reason....
Using dao 2.51/3.51 compatibility.
ANY IDEAS?
I have simple access database, I have two forms...first form creates a
criteria for data to be displayed on second form. i.e. based on selections
the recordsource for the second form is created and passed after opening the
form in the form of a sql statement select item1, item2, item3 from thetable
where item2=1 and item2>=3 etc. When I open this form using the first form
my access 2000 hangs and does nothing. As far as I can see I am creating the
sql statement correctly.
I have created a blank first form with a button on it which opens second
form and sets recordsource...this works perfectly.
But when I do it in my original form with list boxes and drop-downs to build
the sql statement and then click on the search button to produce the results
it hangs. I am mystified to why this is happening.
I have run debugging to find that the open form command line is passed but
when I reference the recordsource in the immediate window.. i get the
runtime error 2450 for not open message..its like it hasn't opened the form
for some reason....
Using dao 2.51/3.51 compatibility.
ANY IDEAS?