Jeff thanks for the input, I will begin from here
The code I have added to the command button is as follows
Private Sub Command80_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "ajustment"
strWhere = "[FDMS]=" & Me!FDMS
DoCmd.OpenReport strDocName, acPreview, , strWhere
End Sub
The error messange i have receved is Runtime error 3464
data type mismatched in criteria expression
Note The field FDMS is a 7 digit number
Thanks agin for the help
Jeff Boyce said:
Terry
If you get a suggestion here in the newsgroups and it doesn't work,
continue
pursuing the thread. By starting a new thread as you have here, anyone
who
didn't see the earlier discussion, and any of those folks who were
already
helping and would be in the best position to help further, are "out of
the
loop".
And when you say "none of them worked for me", I have no clue whether
what
ever was suggested caused an error message (if so, what message?),
produces
results (but incorrect ones), was copied correctly, or if you were unable
to
implement the suggestions.
A bit more information would help, but I still urge you to return to the
starting thread and pursue it there.
--
Good luck
Jeff Boyce
<Access MVP>
I have a very simple data base with a form called case, I would like to
be
able to click on a command button and have a report that displays only
the
current records information for printing .The name of the report is
ajustment. the primary key on the form is FDMS.
I have asked this question and received several suggestion but none of
them
work for me.
Thank you for your help