PC Review


Reply
Thread Tools Rate Thread

Create "One" Record from the "Many" Table

 
 
=?Utf-8?B?VG9tIFZlbnRvdXJpcw==?=
Guest
Posts: n/a
 
      6th Nov 2007
I have a Relationship between two tables. TableOne holds the client data.
TableMany holds the InvoiceData. Referential Integrity enforced.

InvoiceForm based on a query with data from the two tables, linked by
ClientNumber from TableMany.

When an invoice is created, the user enters ClientNumber and the client
details appear. My question is about creating an invoice for a client not in
TableOne. Is there some way to have the Client Record in TableOne created if
it does not already exist, without opening the Client Data Input Form? Just
the ClientNumber Field needs to be populated, all other Fields are on the
Invoice Form (from TableOne) and can be filled in if the ClientNumber in the
TableOne exists.


 
Reply With Quote
 
 
 
 
tina
Guest
Posts: n/a
 
      6th Nov 2007
include the ClientNumber field from TableOne (the primary key, i presume?)
in the query bound to InvoiceForm.

hth


"Tom Ventouris" <(E-Mail Removed)> wrote in message
news:4D09DF30-C87E-45A4-957C-(E-Mail Removed)...
> I have a Relationship between two tables. TableOne holds the client data.
> TableMany holds the InvoiceData. Referential Integrity enforced.
>
> InvoiceForm based on a query with data from the two tables, linked by
> ClientNumber from TableMany.
>
> When an invoice is created, the user enters ClientNumber and the client
> details appear. My question is about creating an invoice for a client not

in
> TableOne. Is there some way to have the Client Record in TableOne created

if
> it does not already exist, without opening the Client Data Input Form?

Just
> the ClientNumber Field needs to be populated, all other Fields are on the
> Invoice Form (from TableOne) and can be filled in if the ClientNumber in

the
> TableOne exists.
>
>



 
Reply With Quote
 
=?Utf-8?B?VG9tIFZlbnRvdXJpcw==?=
Guest
Posts: n/a
 
      6th Nov 2007
Thanks Tina.

It is already there. I still get the error that the system cannot find a
matching record in TableOne.

"tina" wrote:

> include the ClientNumber field from TableOne (the primary key, i presume?)
> in the query bound to InvoiceForm.
>
> hth
>
>
> "Tom Ventouris" <(E-Mail Removed)> wrote in message
> news:4D09DF30-C87E-45A4-957C-(E-Mail Removed)...
> > I have a Relationship between two tables. TableOne holds the client data.
> > TableMany holds the InvoiceData. Referential Integrity enforced.
> >
> > InvoiceForm based on a query with data from the two tables, linked by
> > ClientNumber from TableMany.
> >
> > When an invoice is created, the user enters ClientNumber and the client
> > details appear. My question is about creating an invoice for a client not

> in
> > TableOne. Is there some way to have the Client Record in TableOne created

> if
> > it does not already exist, without opening the Client Data Input Form?

> Just
> > the ClientNumber Field needs to be populated, all other Fields are on the
> > Invoice Form (from TableOne) and can be filled in if the ClientNumber in

> the
> > TableOne exists.
> >
> >

>
>
>

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      6th Nov 2007
On Mon, 5 Nov 2007 21:38:01 -0800, Tom Ventouris
<(E-Mail Removed)> wrote:

>I have a Relationship between two tables. TableOne holds the client data.
>TableMany holds the InvoiceData. Referential Integrity enforced.
>
>InvoiceForm based on a query with data from the two tables, linked by
>ClientNumber from TableMany.
>
>When an invoice is created, the user enters ClientNumber and the client
>details appear. My question is about creating an invoice for a client not in
>TableOne. Is there some way to have the Client Record in TableOne created if
>it does not already exist, without opening the Client Data Input Form? Just
>the ClientNumber Field needs to be populated, all other Fields are on the
>Invoice Form (from TableOne) and can be filled in if the ClientNumber in the
>TableOne exists.
>


By far the simplest way to do this is to *NOT* base your Invoice Form on a
query joining the two tables; instead, use your Client Data Input Form with a
Subform based on the invoice table. Use the ClientID as the master/child link
field to automatically populate the client number, and put a combo box or
other appropriate search tool on the master form to find the desired client
record (or jump to the new record if it's a new client).

John W. Vinson [MVP]
 
Reply With Quote
 
=?Utf-8?B?VG9tIFZlbnRvdXJpcw==?=
Guest
Posts: n/a
 
      6th Nov 2007
Thnaks

"John W. Vinson" wrote:

> On Mon, 5 Nov 2007 21:38:01 -0800, Tom Ventouris
> <(E-Mail Removed)> wrote:
>
> >I have a Relationship between two tables. TableOne holds the client data.
> >TableMany holds the InvoiceData. Referential Integrity enforced.
> >
> >InvoiceForm based on a query with data from the two tables, linked by
> >ClientNumber from TableMany.
> >
> >When an invoice is created, the user enters ClientNumber and the client
> >details appear. My question is about creating an invoice for a client not in
> >TableOne. Is there some way to have the Client Record in TableOne created if
> >it does not already exist, without opening the Client Data Input Form? Just
> >the ClientNumber Field needs to be populated, all other Fields are on the
> >Invoice Form (from TableOne) and can be filled in if the ClientNumber in the
> >TableOne exists.
> >

>
> By far the simplest way to do this is to *NOT* base your Invoice Form on a
> query joining the two tables; instead, use your Client Data Input Form with a
> Subform based on the invoice table. Use the ClientID as the master/child link
> field to automatically populate the client number, and put a combo box or
> other appropriate search tool on the master form to find the desired client
> record (or jump to the new record if it's a new client).
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
???
Guest
Posts: n/a
 
      16th Nov 2007

"John W. Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com>
???????:(E-Mail Removed)...
> On Mon, 5 Nov 2007 21:38:01 -0800, Tom Ventouris
> <(E-Mail Removed)> wrote:
>
>>I have a Relationship between two tables. TableOne holds the client data.
>>TableMany holds the InvoiceData. Referential Integrity enforced.
>>
>>InvoiceForm based on a query with data from the two tables, linked by
>>ClientNumber from TableMany.
>>
>>When an invoice is created, the user enters ClientNumber and the client
>>details appear. My question is about creating an invoice for a client not
>>in
>>TableOne. Is there some way to have the Client Record in TableOne created
>>if
>>it does not already exist, without opening the Client Data Input Form?
>>Just
>>the ClientNumber Field needs to be populated, all other Fields are on the
>>Invoice Form (from TableOne) and can be filled in if the ClientNumber in
>>the
>>TableOne exists.
>>

>
> By far the simplest way to do this is to *NOT* base your Invoice Form on a
> query joining the two tables; instead, use your Client Data Input Form
> with a
> Subform based on the invoice table. Use the ClientID as the master/child
> link
> field to automatically populate the client number, and put a combo box or
> other appropriate search tool on the master form to find the desired
> client
> record (or jump to the new record if it's a new client).
>
> John W. Vinson [MVP]



 
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
Create Pivot Table Data with Column "Sum" rather than "count" defa Johnny_99 Microsoft Excel Misc 2 2nd Jan 2010 03:25 PM
How do I create a "Send" button that uses a record's "e-mail" fiel =?Utf-8?B?TkRNYWM=?= Microsoft Access Forms 2 12th Jul 2006 12:48 AM
"#Error" displayed in one record in table. "Invalid argument" =?Utf-8?B?Q2hyaXM=?= Microsoft Access 1 18th Aug 2005 01:02 AM
Hide "Record" "Closed Caption" "Parental Control" indicators while in full screen Jordan ATI Video Cards 0 18th Feb 2005 05:21 PM
"Can't add record(s); join key of table "SUBFORMS UNDERLYING TABLE NAME" not in record set" Error message Dave the wave Microsoft Access Form Coding 5 10th Jun 2004 11:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 AM.