"ladybug via AccessMonster.c om" <u21071@uwewrot e in
news:76714e6932 a13@uwe:
The dates do not come from a table. This is just a form which
sets the criteria that will be used when opening the report.
Your statement that the form has three fields is what leads
people astray. Forms do NOT have fields. Tables have fields.
The process of binding a form to a table or query means that the
fields appear in the textboxes. Had you said there are three
textboxes on the form, you would have been clear.
As to your problem of the report not opening, your data talks of
chrUserID. is this really a text field, or an ID Number field?
If it's a text field, you need to modify the way you pass the
info to the form
strWhere = "[chrUserId] = " & Me.[chrUserID] will work for a
numeric field.
strWhere = "[chrUserId] = '" & Me.[chrUserID] & "'" is
required for a text type ID.
>
Salad wrote:
>>What two tables? There is no table for the dates they are
just text fields.
You stated "First field is "chrUserID, " this is a combo box
with a row source from another table..."
So I figured 2 tables were in play. Sometimes combos can have
multiple columns and I figured the data in the combo might be
used as well as the other fields.
>>>>>I have a form called "EmpRpt". It has three fields. First
>field is "chrUserID, " this is a combo box with a row source
>from another table. The
[quoted text clipped - 28 lines]
>>> If Me.Dirty then DoCmd.RunComman d acCmdSaveRecord
Docmd.OpenRepor t...
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from
http://www.teranews.com