Solved

Dynamic form record source??

Posted on 2002-07-22
5
185 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

770 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