Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Dynamic form record source??

Posted on 2002-07-22
5
Medium Priority
?
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 54

Accepted Solution

by:
nico5038 earned 1200 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

604 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