Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / August 2006

Tip: Looking for answers? Try searching our database.

If Field "B" = FIELD "A" Then.....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NeonSky - 23 Aug 2006 22:18 GMT
Hello All,

Quick question here. In the query design window I am creating a make table
query where if the value of field "A" is equal to the value of field "B" then
do not include record in query result.

Happy to provide additional info!

Thanks so much!!
Al Campagna - 23 Aug 2006 22:28 GMT
Neon,
  In the A column use this criteria...
<> [B]
All A records that = B will be dropped.

Signature

hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

> Hello All,
>
[quoted text clipped - 5 lines]
>
> Thanks so much!!
Access101 - 23 Aug 2006 22:30 GMT
Let me know if this helps:

I create a Field in the query called MySort

MySort: IIF(A=B, "YES", "NO")

Then on the Criteria level of the query, I type in "YES".

This way only the records that have a YES will go into the Make Table.

> Hello All,
>
[quoted text clipped - 5 lines]
>
> Thanks so much!!
NeonSky - 24 Aug 2006 17:03 GMT
Awesome! really helped me because when dealing with multiple fields I
inserted OR statements in which worked perfectly!

>Let me know if this helps:
>
[quoted text clipped - 11 lines]
>>
>> Thanks so much!!
Klatuu - 23 Aug 2006 22:30 GMT
In the Criteria row of FieldA:

<> FieldB

That will cause the query to include only those rows where the two fields
are not equal.

> Hello All,
>
[quoted text clipped - 5 lines]
>
> Thanks so much!!
NeonSky - 24 Aug 2006 15:42 GMT
Thanks everybody, truly do appreciate the input!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.