473,396 Members | 2,033 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,396 software developers and data experts.

sort data seperated by comma

nehashri
i want to knw how Search for text within single file in Ms Access, i have my data seperated by commas in the columns.......

how do i query through the file for single word. like for example i want to search a word say "language" in my database(in my database the data in each column is seperated by comma or my data) how do i query the word or how should i store the data so that is is queriable...

to be more clear my data is delimited by commas and i want to search through this. like in Ms Excell's find option is present if we query for a word it searches through whole sheet....through texts or any kind of data that perticular word is searched.... is it also default(same) in acsess. if no how do i do this......
Apr 11 '07 #1
4 2334
Hi

If you want to search the word or letter, create a query for particular table and select the field to be displayed in query. Just below the field ie in cirteria write this command - Like "*" & ["Field Name"] & "*"

Eg: Table having 5 field - code, name, add, city, pin

in query select all field if required, if you want to search address then below the address field in criteria -give the command - Like "*" & ["Address"] & *

try this option, it might work.

thanks & bye

Kartik
Apr 11 '07 #2
pks00
280 Expert 100+
Hi Nehashri

are you saying each column has text which is split by commas?
Do u want to search all columns or a specific column

when u say a single word, this means it has to satisfy a number of conditions to be a single word, I hope you know what I mean
U have to search for

- the first word - ends with a space or comma or column just contains that word
- middle word - begins with a space or comma and ends with a space or comma or is last word

so lots of conditions, will make your searching a bit slow
Apr 11 '07 #3
thnx for reply actually i want something like below

table A

codes address
1
2
3
4 GO:0000166, GO:0000775, GO:0000795, GO:0000800, GO:0003677
5
6
7
8 GO:0042802
9
10 GO:0005509, GO:0005856, GO:0007010, GO:0016020, GO:0051016

suppose i hv 2 tables table A and table B. table A is linked to table B by the column 'codes'. i hv the above data all i want is when user gives command for GO:0000795 this word should be searched. the what ever data which is present in table B associated with codes should be displayed here search should result in recognition of 4(in column codes) n linking to table B.....

this search should have criteria search only word in all the colums 'address' in table A recognise perticular code n display information of table B associated with that perticular code.

can usage of ASP as front end be of any use???
plz help
thnx again
neha
Apr 12 '07 #4
Hi!!!


try this option

In Query select two table ie A & B and select the field as per your requirement.
Go to the field name "Codes" there is option certeria - write this code ' =Like "*" & ["Codes"] & "*" '

it will work

thanks & bye

Kartik
Apr 12 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Dr. Ann Huxtable | last post by:
Hello All, I am reading a CSV (comma seperated value) file into a 2D array. I want to be able to sort multiple columns (ala Excel), so I know for starters, I cant be using the array, I need...
11
by: Craig Keightley | last post by:
I have a mysql database with a list of companies who supply specific products tblSuppliers (simplified) sID | sName | goodsRefs 1 | comp name | 1,2,3,4,5 2 | company 2 | 2,4
1
by: nate axtell | last post by:
In VB .NET I load the contents of an Excel or comma seperated values file into a dataGrid (via a datatable). One of the columns has a comma in the name of the column. So for the comma separated...
3
by: dfetrow410 | last post by:
I need make a comma seperated list, but whwn I build the list I get a comma at the end. How do I remove it? foreach (ListItem lst in REIPropertyType.Items) { if (lst.Selected == true) {...
3
by: xuxf055 | last post by:
Hi Everybody, I am confused for a few days, how to read the data file seperated by comma. for exampe following file. data.txt 1,2,3,4,5,6,7,8,9,10 11,12,13,14,15,16,17,18,19,20 how to read it...
1
nehashri
by: nehashri | last post by:
i hv a database in access wid Asp as front end. ven given a word in search command it shud go to a table in which each field has words serated by comma. each word shud b checked for the given user...
2
nehashri
by: nehashri | last post by:
i hv a database in access wid Asp as front end. ven given a word in search command(of the front end) it shud go to a table in which each field has words serated by comma. each word shud b checked...
0
by: Kristi | last post by:
I need to create a CL program that will take a PF, and create a tab delimited file that has comma seperated column headings as the first record. I know i can use cpytostmf/cpytoimpf to create the...
6
by: orajit | last post by:
Hi, I wanted to list the all columns of a emp table . The output should be comma seperated and list of column should come in brakets like (enam,sal,jdate,job). The below code gives me proper...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.