PC Review


Reply
Thread Tools Rate Thread

Default values from one table, entered values in another

 
 
=?Utf-8?B?bGFzZXIwMjkxMA==?=
Guest
Posts: n/a
 
      17th Jun 2005
I have 2 tables (Customerstbl, and ShipTotbl) and 1 form (Ordersfrm) I want
to use default address values from the Customerstbl to fill out the "Ship
to:" information on the form if there are no values in the ShipTotbl. But, if
I change the "Ship to:" values on the form, I want the new values to be
stored in the ShipTotbl. I also have a Customers form that I can enter or
view the ShipTo information. I thought that I could do this with an If ISNull
statement, but it doesn't work. Could someone Please help me?
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      17th Jun 2005
Open the Northwind sample database.
Open the Orders form in design view.
Look at the AfterUpdate event for CustomerID.

It gets the default address, and fills it in and remembers it.
(Note that this form is based on a query that has both the Orders table and
the Customers table, so it has both available.)

--
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.

"laser02910" <(E-Mail Removed)> wrote in message
news:7629C5C2-FEA4-4943-BCEE-(E-Mail Removed)...
>I have 2 tables (Customerstbl, and ShipTotbl) and 1 form (Ordersfrm) I want
> to use default address values from the Customerstbl to fill out the "Ship
> to:" information on the form if there are no values in the ShipTotbl. But,
> if
> I change the "Ship to:" values on the form, I want the new values to be
> stored in the ShipTotbl. I also have a Customers form that I can enter or
> view the ShipTo information. I thought that I could do this with an If
> ISNull
> statement, but it doesn't work. Could someone Please help me?



 
Reply With Quote
 
=?Utf-8?B?bGFzZXIwMjkxMA==?=
Guest
Posts: n/a
 
      21st Jun 2005
Thank you for your help Allen. I added another table that helps keep track of
Inventory and it took a few tries till I got it right. All is working fine at
this point.
I'm learning "on-the-job" and I couldn't do it without the help I receive
here.
Thank you again!

"Allen Browne" wrote:

> Open the Northwind sample database.
> Open the Orders form in design view.
> Look at the AfterUpdate event for CustomerID.
>
> It gets the default address, and fills it in and remembers it.
> (Note that this form is based on a query that has both the Orders table and
> the Customers table, so it has both available.)
>
> --
> 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.
>
> "laser02910" <(E-Mail Removed)> wrote in message
> news:7629C5C2-FEA4-4943-BCEE-(E-Mail Removed)...
> >I have 2 tables (Customerstbl, and ShipTotbl) and 1 form (Ordersfrm) I want
> > to use default address values from the Customerstbl to fill out the "Ship
> > to:" information on the form if there are no values in the ShipTotbl. But,
> > if
> > I change the "Ship to:" values on the form, I want the new values to be
> > stored in the ShipTotbl. I also have a Customers form that I can enter or
> > view the ShipTo information. I thought that I could do this with an If
> > ISNull
> > statement, but it doesn't work. Could someone Please help me?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically get Value from a table based on values entered on fo PPCO Microsoft Access 3 7th Oct 2009 09:33 PM
Values calculated in a Form entered in the Table? Ollie*99 Microsoft Access Forms 6 31st Jul 2008 01:24 AM
Table fields:- Setting default values to be based on other field values Rob W Microsoft Access 3 20th Feb 2008 08:51 PM
Excel Values Entered Then Values Populate In Access Table apdc711 Microsoft Access Database Table Design 2 1st Feb 2008 08:31 PM
How do I sum between any two entered values in a vlookup table =?Utf-8?B?aGthZW1wZmZl?= Microsoft Excel Worksheet Functions 4 25th Aug 2006 02:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:48 AM.