Very nice and fancy...wow this is very nice to use makes then a lot easier to setup and manage. I have one more to do...and i saved the best for last. I got this module from a post on tek-tips and the writing said he got it from microsoft site. What is allows me to do is print letters with mutiple ID numbers. For example i can put in the box 1751,154,5116,1561,6164,212 and it will view those id numbers for me so i can print them out. I have no idea how to set this up on one of the events for the option group. here is the module code used.
-------------------------------------------------------
Option Compare Database
'************************************************************
'Declarations section of the module.
'************************************************************
Option Explicit
'============================================================
' The GetToken() function defines the delimiter character.
'============================================================
Function GetToken(stLn, stDelim)
Dim iDelim As Integer, stToken As String
iDelim = InStr(1, stLn, stDelim)
If (iDelim <> 0) Then
stToken = LTrim$(RTrim$(Mid$(stLn, 1, iDelim - 1)))
stLn = Mid$(stLn, iDelim + 1)
Else
stToken = LTrim$(RTrim$(Mid$(stLn, 1)))
stLn = ""
End If
GetToken = stToken
End Function
'============================================================
' The InParam() function is the heart of this article. When
' the query runs, this function causes a query parameter
' dialog box to appear so you can enter a list of values.
' The values you enter are interpreted as if you
' had entered them within the parentheses of the In() operator.
'============================================================
Function InParam(Fld, Param)
Dim stToken As String
'The following two lines are optional, making queries
'case-insensitive
Fld = UCase(Fld)
Param = UCase(Param)
If IsNull(Fld) Then Fld = ""
Do While (Len(Param) > 0)
stToken = GetToken(Param, ","

If stToken = LTrim$(RTrim$(Fld)) Then
InParam = -1
Exit Function
Else
InParam = 0
End If
Loop
End Function
---------------------------------------------------
also on my query that i use for the report on the "field" space i have
----------------------------------
IDList: InParam([ID],[Enter mulitiple ID numbers])
----------------------------------
and i have the criteria set to "True"
I was thinking this is to hard to set up for the option group and was thinking of just making a copy of the report and pointing it to my query.
Thanks, PAUL