PC Review


Reply
Thread Tools Rate Thread

Copy And Paste data From a Form ????

 
 
=?Utf-8?B?a2VubnlrZWU=?=
Guest
Posts: n/a
 
      13th Jun 2005
I have two forms with each of them possess a subform(Datasheet) .
First Form : Marketing (Invoice)
Second : Industry (Invoice)

First form has one checkbox
Both of the form is exactly identical even the field in it but based on
their own respective table

Question:

How to append recordsets in the subform in first subform to subform of
second form programmtically when i check the checkbox and delete recordsets
if i uncheck the checkbox? (Append query cant help coz key violation in
lookup field)

I want each page in first form for each page in second form.

Any solutions?

Thanks in advance

Kennykee
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QkFD?=
Guest
Posts: n/a
 
      13th Jun 2005
As I'm reading this you want to Append the Invoice list from Marketing_Table
to the Invoice list in Industry_Table but run into key violations.

I would guess you're getting these because the common field is the Invoice
number and that field is defined as PK/Unique in Idustry_Table???

If that's so:
Have you tried creating the append query with the where clause:

"Where Invoice_Table!Invoice_Number is null"

This will preclude the query from trying to append the already existing
Invoice into the Invoice_Table.

BAC

"kennykee" wrote:

> I have two forms with each of them possess a subform(Datasheet) .
> First Form : Marketing (Invoice)
> Second : Industry (Invoice)
>
> First form has one checkbox
> Both of the form is exactly identical even the field in it but based on
> their own respective table
>
> Question:
>
> How to append recordsets in the subform in first subform to subform of
> second form programmtically when i check the checkbox and delete recordsets
> if i uncheck the checkbox? (Append query cant help coz key violation in
> lookup field)
>
> I want each page in first form for each page in second form.
>
> Any solutions?
>
> Thanks in advance
>
> Kennykee

 
Reply With Quote
 
=?Utf-8?B?a2VubnlrZWU=?=
Guest
Posts: n/a
 
      18th Jun 2005
Thanks BAC
I will try it out
Sorry for the late reply because Internet Service Provider's server down

"BAC" wrote:

> As I'm reading this you want to Append the Invoice list from Marketing_Table
> to the Invoice list in Industry_Table but run into key violations.
>
> I would guess you're getting these because the common field is the Invoice
> number and that field is defined as PK/Unique in Idustry_Table???
>
> If that's so:
> Have you tried creating the append query with the where clause:
>
> "Where Invoice_Table!Invoice_Number is null"
>
> This will preclude the query from trying to append the already existing
> Invoice into the Invoice_Table.
>
> BAC
>
> "kennykee" wrote:
>
> > I have two forms with each of them possess a subform(Datasheet) .
> > First Form : Marketing (Invoice)
> > Second : Industry (Invoice)
> >
> > First form has one checkbox
> > Both of the form is exactly identical even the field in it but based on
> > their own respective table
> >
> > Question:
> >
> > How to append recordsets in the subform in first subform to subform of
> > second form programmtically when i check the checkbox and delete recordsets
> > if i uncheck the checkbox? (Append query cant help coz key violation in
> > lookup field)
> >
> > I want each page in first form for each page in second form.
> >
> > Any solutions?
> >
> > Thanks in advance
> >
> > Kennykee

 
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
Copy Paste Form Data Dave Microsoft Access Forms 3 10th Dec 2008 04:48 AM
Copy data from field on a form/paste it to a field in another form Pierre Microsoft Access Form Coding 4 9th Oct 2008 12:47 PM
Bottom on a form that copy paste data in a table Fred's Microsoft Access 6 4th Jan 2008 01:15 AM
copy data as string and paste into web form J.W. Aldridge Microsoft Excel Programming 0 31st Oct 2006 04:45 PM
Copy data from excel and paste it onto Access datasheet form Pmxgs Microsoft Access 1 19th Jul 2005 04:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:11 AM.