Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Finding data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim - 19 May 2005 21:52 GMT
I have a table that records each person's customerID, name, address,
donation...How do I set up a query or form that when I type in the customerID
or the person's name, all other information will show up? Thanks
Ofer - 19 May 2005 23:56 GMT
1. create a for
2. bound the form to the table you created
Select * From MyTable Where customerId=forms![FormName]![CustomerID] (see
part four)
3. create all the fields in the form, bound the text boxes to the fields
from the table.
4. create another field, unbounded, where the user can enter the customerID
5. on the after update event of the customerid (4), enter the code

IF isnull(dlookup("CustomerID","MyTable", "CustomerID = " & me.customerID))
then
   msgbox "Customer does not exist"
else
   me.requery
end if

I hope it will work up

> I have a table that records each person's customerID, name, address,
> donation...How do I set up a query or form that when I type in the customerID
> or the person's name, all other information will show up? Thanks
Joe - 20 May 2005 10:25 GMT
Why not use a ComboBox using the wizard and select "Find a record on my form
based on a value I selected in my ComboBox"?

Signature

HTH

> 1. create a for
> 2. bound the form to the table you created
[quoted text clipped - 20 lines]
>> customerID
>> or the person's name, all other information will show up? Thanks
Ofer - 20 May 2005 10:45 GMT
It the same thing text box or combo box, just make it unbound other wise it
will try and change the data in customer id, if you use a combo you wont need
to use the dlookup, because we know that the customer exist.
the find will find the record, but you need to use more code. also all the
data will still be there, so if the user will press page down he will move to
the next customer.

> Why not use a ComboBox using the wizard and select "Find a record on my form
> based on a value I selected in my ComboBox"?
[quoted text clipped - 23 lines]
> >> customerID
> >> or the person's name, all other information will show up? Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.