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

Querying a table by inputing values in a form field...

2
Hi,

I am kind of new with Access and I was wandering if someone could help me create a form where I can query data in a table by entering values in that form.

For Example:

I have a table called Customer.

Customer fields are: (PK) CustomerID, CustomerName, CustomerAddr.

I want to be able to create a form that if I enter "1111" for CustomerID, it will bring me back the CustomerName and CustomerAddr associated with that particular CustomerID. So far I have been able to create a query but when I link the query to the form it gives me all the available records... Sample code would be greate...

Thank you in advance
Genti
Jun 22 '07 #1
2 1190
puppydogbuddy
1,923 Expert 1GB
Hi,

I am kind of new with Access and I was wandering if someone could help me create a form where I can query data in a table by entering values in that form.

For Example:

I have a table called Customer.

Customer fields are: (PK) CustomerID, CustomerName, CustomerAddr.

I want to be able to create a form that if I enter "1111" for CustomerID, it will bring me back the CustomerName and CustomerAddr associated with that particular CustomerID. So far I have been able to create a query but when I link the query to the form it gives me all the available records... Sample code would be greate...

Thank you in advance
Genti
See these links for HowTo’s with code. The first link uses a textbox search, and the second link uses a listbox search.
http://www.databasedev.co.uk/text_search.html

http://www.databasedev.co.uk/list_box_searching.html
Jun 22 '07 #2
genti1
2
See these links for HowTo’s with code. The first link uses a textbox search, and the second link uses a listbox search.
http://www.databasedev.co.uk/text_search.html

http://www.databasedev.co.uk/list_box_searching.html


Thank you. The links were very helpfull
Jun 22 '07 #3

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

Similar topics

6
by: John Baker | last post by:
HI: I have a situation where I wish to enter a value in an unbound field on a form and then change the same field in each record on the form so that it reflects the value entered. THe form is...
8
by: charles.amith | last post by:
I have 2 tables: LOCATION and ELEVATION In location, I would like to find the record with the max value for field: DATE1 In elevation, I would like to find the record with the max value for...
10
AllusiveKitten
by: AllusiveKitten | last post by:
Hi I am hoping someone can help me, I have a form with two combo boxes in it.... The first combo box gets its values from a table via an SQL query in the combo box properties. The second combo...
1
by: SilRay | last post by:
I will admit up front that this is to help with an assignment for a class, however, I'm looking for information outside the scope of the assignment because I want to do something cooler. The...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.