473,513 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table dose not exist

5 New Member
Hi all,

Could someone please point me in the right direction!

I am in the process of creating an Ms Access db and as part of this use VBA in a form to create a table based on the input to the form.
The VBA is run as a result of clicking a button, creates the table and then opens a new form with a sub form based on the new table.

However this bit dose not work and you get the message "Table dose not exist"
The table dose not appear in the database window until you click on another tab and then back to Tables.

This leads me to think that I need some way to refresh the list of tables before opening the new form.

Any thoughts or comments most welcome
Jun 8 '07 #1
2 1590
puppydogbuddy
1,923 Recognized Expert Top Contributor
Hi all,

Could someone please point me in the right direction!

I am in the process of creating an Ms Access db and as part of this use VBA in a form to create a table based on the input to the form.
The VBA is run as a result of clicking a button, creates the table and then opens a new form with a sub form based on the new table.

However this bit dose not work and you get the message "Table dose not exist"
The table dose not appear in the database window until you click on another tab and then back to Tables.

This leads me to think that I need some way to refresh the list of tables before opening the new form.

Any thoughts or comments most welcome
Try adding this line of code after you've finished creating the tables and before creating the form:

db.TableDefs.Refresh 'replace db with the database object that you created
Jun 8 '07 #2
Guy Moseley
5 New Member
Sorry for the delay getting back to you but my PC died!!!

Many thanks for the super quick reply.
I tried it but couldn’t get it to work however it did point me in the right direction and I used CurrentDB and that worked

Many thanks again
Jun 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
49423
by: gonzal | last post by:
Hi Dose any body know why a temporary table gets deleted after querying it the first time (using SELECT INTO)? When I run the code bellow I'm getting an error message when open the temp table...
1
2487
by: Philo | last post by:
How do I select all <div> tags except those which contain a <table> tag somewhere within them? Example XML: <********************** sample input ***********************> <txtSectionBody>...
3
11347
by: Terrence Brannon | last post by:
I don't know what Postgres considers a relation and had no intention of creating one when piping my schema to it... I always DROP TABLE before CREATE TABLE, so here are the ERRORS emitted when...
4
1605
by: jdubey | last post by:
Hi: i have one asp.net application.From this application i am connecting to sql sever on domain.Earlier it was connecting.After i reinstalled the sql sever and try to open the connection ,it is...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.