473,388 Members | 1,327 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,388 software developers and data experts.

Using forms and queries.

Hi. This is my first time posting on your site, so I hope this
question hasn't been asked 50 times already. I know this is probably
a really easy question, but I have a real simple form set up. I have
4 text fields and 1 list box. What I want is to be able to enter the
data (user id) in one of the text box's and have it have it query the
table looking for that user id. If it finds it I want it to
automatically put in the data I have previously saved in the table for
the list box and one of the other text boxes. Can I use a query to do
this or do I need to create a macro? Does anyone have any documetation
they could send me on how to do this. If you would like to see the
file, I have no problem sending it to you just let me know your email
address.

Thanks in advance,

Michael
Nov 12 '05 #1
2 1261
Instead of using a Text Box, use a Combo Box, make sure the Control Wizard
is "on" (the "magic wand" symbol in your toolbox appears depressed) and
carefully read the options -- one of them does exactly what you want. And,
it also "checks" the value entered. Using a text box, there's no assurance
that what the user enters will actually be a valid value that is in the
table.

Larry Linson
Microsoft Access MVP

"Mike" <sd************@yahoo.com> wrote in message
news:43**************************@posting.google.c om...
Hi. This is my first time posting on your site, so I hope this
question hasn't been asked 50 times already. I know this is probably
a really easy question, but I have a real simple form set up. I have
4 text fields and 1 list box. What I want is to be able to enter the
data (user id) in one of the text box's and have it have it query the
table looking for that user id. If it finds it I want it to
automatically put in the data I have previously saved in the table for
the list box and one of the other text boxes. Can I use a query to do
this or do I need to create a macro? Does anyone have any documetation
they could send me on how to do this. If you would like to see the
file, I have no problem sending it to you just let me know your email
address.

Thanks in advance,

Michael

Nov 12 '05 #2
Sure, and maybe we check your table structure for normilization while we're at it.

"Larry Linson" <bo*****@localhost.not> wrote in message news:<0D*****************@nwrddc01.gnilink.net>...
Instead of using a Text Box, use a Combo Box, make sure the Control Wizard
is "on" (the "magic wand" symbol in your toolbox appears depressed) and
carefully read the options -- one of them does exactly what you want. And,
it also "checks" the value entered. Using a text box, there's no assurance
that what the user enters will actually be a valid value that is in the
table.

Larry Linson
Microsoft Access MVP

"Mike" <sd************@yahoo.com> wrote in message
news:43**************************@posting.google.c om...
Hi. This is my first time posting on your site, so I hope this
question hasn't been asked 50 times already. I know this is probably
a really easy question, but I have a real simple form set up. I have
4 text fields and 1 list box. What I want is to be able to enter the
data (user id) in one of the text box's and have it have it query the
table looking for that user id. If it finds it I want it to
automatically put in the data I have previously saved in the table for
the list box and one of the other text boxes. Can I use a query to do
this or do I need to create a macro? Does anyone have any documetation
they could send me on how to do this. If you would like to see the
file, I have no problem sending it to you just let me know your email
address.

Thanks in advance,

Michael

Nov 12 '05 #3

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

Similar topics

1
by: Steve | last post by:
I am using Access 2000 and I have a DB that is currently running four different queries from some Forms and subforms. These queries each have a date field that are seperate from each other that are...
22
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
10
by: Robert | last post by:
How do you get an accurate count of the number of records returned from a query when using linked tables. I have an access 2003 database as a front end to another access 2003 database that...
10
by: john | last post by:
I have a report to print envelopes. The report is based on a query. Now I need to make 10 more queries to make different selections of addresses. Every query has the same output fields as the...
11
by: Josetta | last post by:
I searched around a little bit, but didn't come up with the answer to this question, but somewhere in the back of my mind, I think this can be done... Let's say we have two different company...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.