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 / Forms / October 2005

Tip: Looking for answers? Try searching our database.

Dynamic query sort of thing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
halfbodyguy@hotmail.com - 18 Oct 2005 20:26 GMT
OK, I am new and tasked with making a dispatch database.

We have customer numbers such as 100443.002

in that the .002 is the delivery address and the 100433 is the specific

person or company.

I need to have a setup where when filling in the form information, I
can enter the customer number, then have the Delivery location be a
list of ONLY delivery locations tied to that Customer.

For example with each customer I have fields set up as such:

ADDRESSTABLE

CUSTOMERNUMBER   DELIVERYNUMBER    ADDRESS
110029           001               123Wherever St
110029           002               865 Myhouse st
110040           001               thisplace road
110040           003               myoldplace

ORDERTABLE

ORDER NUMBER    CUSTOMER NUMBER   DELIVERYNUMBER  OTHERFIELDS
5540019         110029            002(dropdown)   xxxxxxxxxxx
5540020         110040            003(dropdown)   xxxxxxxxxxx

Now i want to select the customer number in a form (or preferably setup

from the table) and then when I go to the address field, the only
options I have are those with the same customer number as the field I
am working in.

I assume this will probably require a query, but I can't quite seem to
get it right... Any Ideas?
Allen Browne - 19 Oct 2005 04:33 GMT
If you are designing this database, use 2 separate fields for CustomerID and
AddressID. You can then display them on a print out as:
   =[CustomerID] & "." & [AddressID]

Now you can have 2 separate combos for the customer and address, and you can
use the Enter event of the second one to set its RowSource. Details in:
   Limit content of combo/list boxes
at:
   http://www.mvps.org/access/forms/frm0028.htm

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> OK, I am new and tasked with making a dispatch database.
>
[quoted text clipped - 32 lines]
> I assume this will probably require a query, but I can't quite seem to
> get it right... Any Ideas?
 
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.