Solved

Dynamic form record source??

Posted on 2002-07-22
5
194 Views
Last Modified: 2006-11-17
Okay, here's what I've got. I'm working on a project where I have about 18 different types of tables. I need these to stay empty because they are my templates.  I have a form that has an associated button for each type of table, and when you click it it prompts you to enter a new table name. This occurs through a simple macro. And after they specify the new table name I want it to open up a data entry form that I have built, specific to each type of table, but I need it to be associated with the brand new table that was just created.

Now, I'm almost posative that I'm gonna have to dump the whole simple macro Idea, and use some Event procedures (I'd really prefer to try and keep it on this level, because I'm a completely ignorant as far as VB goes)

How can I go about making it open up my Data entry form with it's record source being for the table that was just created?

please help me

thanks in advance

0
Comment
Question by:Reighn21
  • 3
  • 2
5 Comments
 
LVL 54

Accepted Solution

by:
nico5038 earned 400 total points
ID: 7170125
Did you consider to use a tab control with all 18 tables?
Thus the table combo can be dropped.

Just use your sample tables to fill the data and on the save button you activate an append or maketable query for each of them to store the data in a new table and issue a delete * from tblX to empty it again.

Idea ?

Nic;o)
0
 

Author Comment

by:Reighn21
ID: 7170159
hey, sounds like a great Idea, how would one begin to do that?
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7170166
I guess you already have the subforms ready, then just place a tab control on a "main" form and add as many pages as necessary.
On each page add the subform for the table.

Just drop a line when stuck.

Nic;o)
0
 

Author Comment

by:Reighn21
ID: 7170286
well, I didn;t really do it your exact way, but you did get me to think about doing it another way, points to you
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7170307
I like it when people are that flexible with their design, just drop a comment when you need more idea's ;-)

Nic;o)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question