A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Typing CustomerNumber in textbox fills in customer info in form.



 
 
Thread Tools Display Modes
  #21  
Old March 21st, 2006, 06:43 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Typing CustomerNumber in textbox fills in customer info in for

I am in the process of creating a new database. It makes sense to me now that
everything has to be entered into the Orders table. I am using the Northwind
Database to try and understand the structure. I am in the process now of
adding the combo box to the Orders table with 2 columns: CustomerID and
CustName with 0" for the first column. At least I'm headed in the right
direction now.
Many thanks to you and Al

"John Vinson" wrote:

On Mon, 20 Mar 2006 19:39:27 -0800, Ron Weaver
wrote:

The CustomerNumber field is a Text field. Here is the recordsource for my
'Orders' form:
SELECT Customer.CustomerID AS Customer_CustomerID, Customer.FirstName,
Customer.LastName, Customer.Address, Customer.City, Customer.State,
Customer.ZipCode, Customer.Phone, Customer.Fax, Orders.OrderID,
Orders.CustomerID AS Orders_CustomerID, Orders.OrderDetailID, Orders.Room,
Orders.TodaysDate, Orders.StartDate, Orders.EndDate, Orders.ArriveTime,
Orders.StartTime, Orders.EndTime, Orders.Notes, Customer.CustomerNumber
FROM (Customer INNER JOIN Orders ON Customer.CustomerID = Orders.CustomerID)
INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID;


THAT is the problem. Thank you.

I see elsethread that you're reevaluating your table structure. When
you do so, consider using *TWO* forms - one for the customer, one for
the order - since they are different entities with different
requirements! If you base your Orders form *just* on the Orders table,
you can put a combo box bound to Orders.CustomerID displaying the
customer name, and storing the customerID; you can even put VBA code
into that combo's NotInList event to pop open a Customer form so that
you can enter the information for new customers.

John W. Vinson[MVP]

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find customer by customernumber using sql ? SpookiePower New Users 3 February 15th, 2006 02:55 PM
ComboBox RowSource Disappears Larry Using Forms 3 December 8th, 2005 03:27 AM
Command Button Not working Properly, HELP PLEASE jwrnana Using Forms 13 September 27th, 2005 03:51 AM
Design help, please SillySally Using Forms 27 March 6th, 2005 04:11 AM
Need to clear controls of Filter form Jan Il Using Forms 2 November 28th, 2004 02:04 PM


All times are GMT +1. The time now is 08:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.