PC Review


Reply
Thread Tools Rate Thread

Copying a table to a subform

 
 
jshangkuan@gmail.com
Guest
Posts: n/a
 
      25th Jan 2007
Say for example I have a table1 with field F1, F2, F3
and a table2 with F1,F4,F5,F6 and table 1 and table 2 are related by F1

I have a separate table called tableHistory that contains information
generated by a query and holds information F1,F3,F5

What VBA code will let me copy from tableHistory to my subform?

Thanks for your help.

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      25th Jan 2007
You don't copy from a table to a form. You make a query based on the table
the recordsource for the form.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Say for example I have a table1 with field F1, F2, F3
> and a table2 with F1,F4,F5,F6 and table 1 and table 2 are related by F1
>
> I have a separate table called tableHistory that contains information
> generated by a query and holds information F1,F3,F5
>
> What VBA code will let me copy from tableHistory to my subform?
>
> Thanks for your help.
>



 
Reply With Quote
 
jshangkuan@gmail.com
Guest
Posts: n/a
 
      25th Jan 2007

Can you please provide a simple example?

Thanks
On Jan 24, 4:50 pm, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com> wrote:
> You don't copy from a table to a form. You make a query based on the table
> the recordsource for the form.
>
> --
> Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
> (no private e-mails, please)
>
> <jshangk...@gmail.com> wrote in messagenews:(E-Mail Removed)...
>
>
>
> > Say for example I have a table1 with field F1, F2, F3
> > and a table2 with F1,F4,F5,F6 and table 1 and table 2 are related by F1

>
> > I have a separate table called tableHistory that contains information
> > generated by a query and holds information F1,F3,F5

>
> > What VBA code will let me copy from tableHistory to my subform?

>
> > Thanks for your help.- Hide quoted text -- Show quoted text -


 
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
Use Mainform checkbox uncheck to clear subform and subform table iamrdbrown Microsoft Access Form Coding 3 30th Sep 2009 10:05 PM
Copying a column from one table into a subform with a button-click =?Utf-8?B?bWtq?= Microsoft Access VBA Modules 2 24th Aug 2007 10:08 AM
copying data from subform to subform Simon Microsoft Access 1 29th Nov 2006 06:34 PM
copying data from subform to subform Simon Microsoft Access 0 29th Nov 2006 05:51 PM
copying data from subform to subform Simon Microsoft Access 1 28th Nov 2006 08:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:36 AM.