F
firecop1
I took the code listed below fro "The Access Web" it was written by Dev
Ashish and I believe it is something I can use however,
I am unsure of what I am supposed to substitute in place of "RunID" to make
it work in my database.
Does it refer to a form name or field name?
Thanks
******************** Code Start ************************
Dim strDocName As String
Dim strWhere As String
strDocName = "rptSomeReport"
strWhere = "[RunID]=" & me!RunID
DoCmd.OpenReport strDocName, acPreview, , strWhere
'******************** Code End ************************
Ashish and I believe it is something I can use however,
I am unsure of what I am supposed to substitute in place of "RunID" to make
it work in my database.
Does it refer to a form name or field name?
Thanks
******************** Code Start ************************
Dim strDocName As String
Dim strWhere As String
strDocName = "rptSomeReport"
strWhere = "[RunID]=" & me!RunID
DoCmd.OpenReport strDocName, acPreview, , strWhere
'******************** Code End ************************