473,657 Members | 2,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sort data seperated by comma

nehashri
49 New Member
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....throug h 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 2358
kartikss
25 New Member
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 Recognized Expert Contributor
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
nehashri
49 New Member
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
kartikss
25 New Member
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
8974
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 something more sophistictated like a vector of row objects. The data is of this format (same number of columns for each row): A, x, y, z, ...
11
2526
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
5307
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 values files I put double quotes are the column name. What I see is that the name ends up getting displayed correctly in the DataGrid column, "Class (1,2,3)". When I click on the column to sort I see the following error: "Additional information:...
3
2985
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) { REIPropertyTypeVal += lst.ToString() + ","; }
3
8404
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 inot an array or display them on screen? thanks
1
1218
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 word n then only futher procedure shud happen. in java like v use string tokenizer wat do v have to search through the data seperated by comma's plz help
2
1645
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 for the given user word n then only futher procedure shud happen. this table has 2 columns one is library(colum has only one word present) is linked to another table of the same DB and other column has this synonyms (synonym of the word in...
0
1858
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 file, but how do i get the headings to be comma seperated while the rest of the file is tab delimited? Any help would be wonderful. Thank you
6
2578
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 result. But I am facing problem with last column name .It comes with coma and then braket . I dont want that comma with last column name . Can u tell me how to achieve that . Please refer below code .. Thanks in advance
0
8402
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8315
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8508
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.