Solved

Dynamic form record source??

Posted on 2002-07-22
5
164 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
Comment Utility
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
Comment Utility
hey, sounds like a great Idea, how would one begin to do that?
0
 
LVL 54

Expert Comment

by:nico5038
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
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 …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now