Adrianna
Registered User.
- Local time
- Today, 06:38
- Joined
- Oct 16, 2000
- Messages
- 254
I've done this a couple of times and never had a problem before. I've been sick and now I'm rushing to meet my deadline and I can't seem to get his to work.
I'm working with two ctriteria in the DoCmd.OpenReport function
I was using the stLinkCriteria and even tried just using the following line in the WHere statement. Everything complies fine, but i get a Type MisMatch error.
"[ID]=" & ME![ID2Delete]&" AND [Division]=" & "'"& Me![Devision2Delete] &"'"
[ID] and [Division] are fields in me main table
[ID] is an auto number
[Division] is text
[ID2Delete] and [Devision2Delete] are unbound textboxes that the user fills in. Actually [Division2Delete] is now a drop down menu from a query, but the mismatch error occurred before that too.
I've tried all sort of combinations of writing this....both as text....one as text, the other as a number....I thought that it had to do with the stLinkCriteria sorting the information as a String, but that's not it.
Can someone point out what I'm blindly over looking?
Thanks!
I'm working with two ctriteria in the DoCmd.OpenReport function
I was using the stLinkCriteria and even tried just using the following line in the WHere statement. Everything complies fine, but i get a Type MisMatch error.
"[ID]=" & ME![ID2Delete]&" AND [Division]=" & "'"& Me![Devision2Delete] &"'"
[ID] and [Division] are fields in me main table
[ID] is an auto number
[Division] is text
[ID2Delete] and [Devision2Delete] are unbound textboxes that the user fills in. Actually [Division2Delete] is now a drop down menu from a query, but the mismatch error occurred before that too.
I've tried all sort of combinations of writing this....both as text....one as text, the other as a number....I thought that it had to do with the stLinkCriteria sorting the information as a String, but that's not it.
Can someone point out what I'm blindly over looking?
Thanks!