473,378 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Help me with query...........Please

I have a access2000 data base and in one field, the "descripion"
field, I have data like:

1920 St. Louis geophysical Map

1988 England CIA map

I want to run a report that will separate all the CIA maps or all the
geophysical maps in the data base from other items.

Thanks

Dennis Franco
dm******@hotmail.com
Nov 12 '05 #1
3 1505
Dennis,
Use a query as report record source.

If there are only 2 choices, CIA or Geophysical, then as criteria for the
Description field, write:
Like IIf([Enter choice c/g] = "c","*CIA*","*geophysical*")

When prompted, enter a c for CIA records. Any other entry will return
geophysical records.

If you have more choices, use a combo box on a form to select the value and
change the criteria to something like:
Like "*" & forms!FormName!ComboName & "*"
The combo box in this case should show the full "CIA" or "geophysical", or
other name.

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
"Dennis Franco" <dm******@hotmail.com> wrote in message
news:a6**************************@posting.google.c om...
I have a access2000 data base and in one field, the "descripion"
field, I have data like:

1920 St. Louis geophysical Map

1988 England CIA map

I want to run a report that will separate all the CIA maps or all the
geophysical maps in the data base from other items.

Thanks

Dennis Franco
dm******@hotmail.com

Nov 12 '05 #2
hi!

you can try the SPLIT function to split the string into one array... the go
to the array index that you need and do a IF to check if it is a geowhatever
or a cia map...

hth
Rui Patinha

"Dennis Franco" <dm******@hotmail.com> escreveu na mensagem
news:a6**************************@posting.google.c om...
I have a access2000 data base and in one field, the "descripion"
field, I have data like:

1920 St. Louis geophysical Map

1988 England CIA map

I want to run a report that will separate all the CIA maps or all the
geophysical maps in the data base from other items.

Thanks

Dennis Franco
dm******@hotmail.com

Nov 12 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In the reports Group/Sort dialog box put something like this:

=InStr([Description],"CIA")>0 Ascending
=InStr([Description],"geophy")>0 Ascending

This will sort the detail section by the Description field. The sort
will separate the CIA maps from the geophysical maps.

HTH,

MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP7WbZYechKqOuFEgEQKuvwCfT56Pez4WCONB1i+F7vGqG8 3bRlQAoIg/
ZnfOSrGJ+4amKsHJuvQ/MTKv
=6uHx
-----END PGP SIGNATURE-----
Rui Patinha wrote:
hi!

you can try the SPLIT function to split the string into one array... the go
to the array index that you need and do a IF to check if it is a geowhatever
or a cia map...

hth
Rui Patinha

"Dennis Franco" <dm******@hotmail.com> escreveu na mensagem
news:a6**************************@posting.google.c om...
I have a access2000 data base and in one field, the "descripion"
field, I have data like:

1920 St. Louis geophysical Map

1988 England CIA map

I want to run a report that will separate all the CIA maps or all the
geophysical maps in the data base from other items.

Thanks

Dennis Franco
dm******@hotmail.com


Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: sah | last post by:
I need some help with the following query: DECLARE @SRV VARCHAR(20), @date smalldatetime SET @SRV = (select @@servername) SET @date = '20040901' select Srv_Name = @SRV, DB_Name = 'DB_NAME',...
6
by: Martin Hampl | last post by:
Hi, I am using PostgreSQL 7.4, but I did have the same problem with the last version. I indexed the column word (defined as varchar(64)) using lower(word). If I use the following query,...
8
by: Andrew McNab | last post by:
Hi folks, I have a problem with an MS Access SQL query which is being used in an Access Report, and am wondering if anyone can help. Basically, my query (shown below) gets some records from a...
6
by: John Baker | last post by:
Hi: As those who have looked at this newsgroup recently will realize, I am a neophyte with Access, although I have experienced with Approach (the Lotus product). There are things I could easily...
9
by: hope | last post by:
Hi Access 97 I'm lost on this code please can you help ================================= Below is some simple code that will concatenate a single field's value from multiple records into a...
10
by: Randy Harris | last post by:
I imported records into a table, later found out that many of them had trailing spaces in one of the fields. If I'd caught it sooner, I could have trimmed the spaces before the import. This...
5
by: Rated R1 | last post by:
I wrote this before in the NGs, so I am going to paste the responses that I got and see if someone can please help me. Email me and we can set something up as Id even be willing to pay for your...
1
by: David | last post by:
Hi, I cannot get the following (MS Access) SQL statement working in my asp page, please can anyone help me ? Thanks :-) ------------------------------------------------ <% strQuery =...
6
by: Takeadoe | last post by:
Dear NG, Can someone assist me with writing the little code that is needed to run an update table query each time the database is opened? From what I've been able to glean from this group, the...
2
by: Haas C | last post by:
Hey all, I created a Query (in Design View) which asks the user for an "As Of Date" which would then display relevant data. I put in the Criteria Row of the Query Design for the Date field. Is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.