Jeanette - thanks for responding firstly.
Unfortunately the other database is across the country or I might indeed
have stopped by in person.
This is a form in which the user executes a parameter query with a selection
from a drop down box, then clicking OK. It is meant to be able to run a
similar report for various Reps listed in the drop down...when she clicks ok
after making her selection she gets the Run Time Error 3075 message and if
she selects Debug it opens up the Script Editor and hghlights the line:
DoCmd.OpenQuery "QryRSNoSplitByRep", acViewNormal, acEdit
Is there perhaps some syntax that might be invalid for different versions of
Access? Again, this same code works fine for me using Access 2003; she may
have Access 2000. I can check that however.
I am not sure what you mean by putting extra code in the form...what event
should trigger that code?
Thanks again!
> Monish,
> it makes it much harder to figure out what is going wrong.
[quoted text clipped - 42 lines]
> >> >
> >> > Thanks!
Jeanette Cunningham - 25 Apr 2008 04:50 GMT
Monish,
from your post it seems that you are using the drop down to choose a rep and
then run a report for that rep.
I suggest to avoid a parameter query and avoid opening the query altogether.
You can open a report from the combo directly, like this:
DoCmd.OpenReport "NameOfYourReport", , "[RepID] = " & Me.cboReps & "
The above will open the report for the RepID chosen in the drop down with
rep names.
If RepID is a text field, change it to
--> DoCmd.OpenReport "NameOfYourReport", , "[RepID] = """ & Me.cboReps &
""""
Replace NameOfYourReport, RepID and cboReps with your report, control and
field names.
Jeanette Cunningham
> Jeanette - thanks for responding firstly.
>
[quoted text clipped - 71 lines]
>> >> >
>> >> > Thanks!