Now you are getting a little more involved into programming. There is noway to accomplish that without programming...
First make a complete backup of the database (.mdb) before changing anything.
Here is an overview of what you will need to do;
1. Remove the PARAMETERS statement from the Query used to generate the report. Test the query to make sure it returns all the data.
2. Within the code I sent u... After the Dim statements enter the following:
===========
Dim strInput As String
Dim strMsg As String
Dim lcWhere as String
strMsg = "Enter your parameter value."
strInput = InputBox(Prompt:=strMsg, Title:="Parameter Info", XPos:=2000, YPos:=2000)
MsgBox "Params: " & strInput 'Delete this line later.
lcWhere = "[FieldName] = '" & strInput & "'"
===========
You now have a variable with your Parameter entry.
3. Within the statement
"DoCmd.OpenReport stDocName, acNormal"
you will need to add a Filter.
"DoCmd.OpenReport stDocName, acNormal, , lcWhere"
htwh... Don't think I can add any more at this point..
Steve Medvid
"IT Consultant & Web Master"