FILTERING -- ACCESS 2010

D

David-W-Fenton

If you are saying that "lookups" (e.g. listboxes, combo boxes) and
lookup tables where it is clear that one table definition contains
a foreign key to another table are perfectly OK, then I am in
agreement and have never argued otherwise.

What I'm saying is that the user interface object, a combo box that
displays a lookup table's data, is appropriate in some circumstances
and not in others. It's fine in a query or in a form, but not in a
table definition.

Likewise, cascading datasheets can be quite useful in the right
context, even though they can cause problems in some situations.

The point here is that it's not the thing that is the problem, but
the mis-use of it in contexts where it shouldn't be.
 
D

David-W-Fenton

:
The discussion of subdatasheets is fascinating, but is anyone able
to address my question?
I really need this functionality!

**Larry -- any idea why I'm getting the "Data type mismatch in
criteria expression"
when I run the code that you supplied?

Larry wrote this, way up the thread, before I jumped in talking
about subdatasheets:

I think we need a bit more information about your data and what
you want to show

I don't understand what your problem is from the way you've
described it, so it seems to me that it's incumbent on you to
respond to Larry's request for more information, made on June 13th.
 
A

amywolfie

Larry wrote this, way up the thread, before I jumped in talking
about subdatasheets:



I don't understand what your problem is from the way you've
described it, so it seems to me that it's incumbent on you to
respond to Larry's request for more information, made on June 13th.

David:

Check the whole thread. I did reply & supplied Larry with answers to
the questions he asked.
===
 
A

Access Developer

Did you read my post of 6/16? After you said that state_pk and state_fk are
long integers, I said that you need to remove some quotes from the SQL I
gave you. I don't see a response to my post of that date -- but, posts do
'get lost' from time to time. However, not seeing a response, I guessed that
you had tried my solution and that it worked.

Just in case it was my post that 'got lost', here's the pertinent part:

--- my post of 6/16 ---

What are the field types of your Fields that are used in the Criteria
expression? Are you sure you copied the quotes correctly? Some are single
quote characters (') and some are regular double quote characters (").

My assumption was that all the fields in the Criteria are field type Text.
If you used, say, an Autonumber for State_pk and a Long Integer for
State_fk, then the line that reads

stLinkCriteria = "[State_fk]=" & "'" & Me![State_pk] & "' AND ([FC_County]
= 'FC' OR [MediaType] Like '*Field*')"

should be changed to

stLinkCriteria = "[State_fk]= " & Me![State_pk] & " AND ([FC_County] =
'FC' OR [MediaType] Like '*Field*')"

<CAUTION: air code, untested>

--
Larry Linson, Microsoft Office Access MVP
Co-author: "Microsoft Access Small Business Solutions", published by Wiley
Access newsgroup support is alive and well in USENET
comp.databases.ms-access

in:



Larry wrote this, way up the thread, before I jumped in talking
about subdatasheets:



I don't understand what your problem is from the way you've
described it, so it seems to me that it's incumbent on you to
respond to Larry's request for more information, made on June 13th.

David:

Check the whole thread. I did reply & supplied Larry with answers to
the questions he asked.
===
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top