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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Create a copy of a form and link the entire form to a new datasour



 
 
Thread Tools Display Modes
  #1  
Old December 12th, 2009, 12:13 AM posted to microsoft.public.access.forms
forest8
external usenet poster
 
Posts: 196
Default Create a copy of a form and link the entire form to a new datasour

Hi

I have two surveys: the initial survey and a post survey.

The Post survey includes all the questions in the initial survey as well as
new questions.

I want to save time in creating forms. How can I make a copy of the initial
survey form and call it "Post" and add my new questions but change the source
to my "Post" table without recreating the entire form?

Thank you in advance.

  #2  
Old December 12th, 2009, 03:13 AM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Create a copy of a form and link the entire form to a new datasour

You change the recordsource of the second form. You can use a single form
and change the recordsource on the fly. Just add a button to the form to
change the recordsource, like:

Sub cmdChangeSource_Click()
If Me.Recordsource = "Query1" Then
Me.Recordsource = "Query2"
Else
Me.Recordsource = "Query1"
End If
End Sub
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"forest8" wrote in message
...
Hi

I have two surveys: the initial survey and a post survey.

The Post survey includes all the questions in the initial survey as well
as
new questions.

I want to save time in creating forms. How can I make a copy of the
initial
survey form and call it "Post" and add my new questions but change the
source
to my "Post" table without recreating the entire form?

Thank you in advance.



 




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


All times are GMT +1. The time now is 07:10 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.