473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to refresh main project window

HI

How can I refresh the main project window in code in ms access 2000

For example, I create a new table, but when I minimize the form, the table
is not there until I do F5 (refresh).
I do the db.TableDefs.Refresh, but I guess this is not applied to the
project window for tables

thanks


Nov 12 '05 #1
3 11745
Hi, Danny.

Use the RefreshDatabaseWindow( ) method of the Application object to show
new objects that you have created in VBA code. The TableDefs.Refresh( )
method will refresh the TableDefs collection after an append or deletion of
a TableDef object, but doesn't force a refresh of the database window
itself.

HTH.
Gunny

Coming soon:
For your Microsoft Access, database development and maintenance needs, see:
http://www.softomagixly.com

"Danny" <dannywork5@ZERO_SPAMhotmail.com> wrote in message
news:kD********************@news4.srv.hcvlny.cv.ne t...
HI

How can I refresh the main project window in code in ms access 2000

For example, I create a new table, but when I minimize the form, the table
is not there until I do F5 (refresh).
I do the db.TableDefs.Refresh, but I guess this is not applied to the
project window for tables

thanks

Nov 12 '05 #2
This is great. Thanks.

I have another question.
How can I make sure I remove all memory variables and such in code when I
close databases and forms.

Thanks

"'69 Camaro" <Ze*******@ZeroSpam.com> wrote in message
news:c2********@library1.airnews.net...
Hi, Danny.

Use the RefreshDatabaseWindow( ) method of the Application object to show
new objects that you have created in VBA code. The TableDefs.Refresh( )
method will refresh the TableDefs collection after an append or deletion of a TableDef object, but doesn't force a refresh of the database window
itself.

HTH.
Gunny

Coming soon:
For your Microsoft Access, database development and maintenance needs, see: http://www.softomagixly.com

"Danny" <dannywork5@ZERO_SPAMhotmail.com> wrote in message
news:kD********************@news4.srv.hcvlny.cv.ne t...
HI

How can I refresh the main project window in code in ms access 2000

For example, I create a new table, but when I minimize the form, the table is not there until I do F5 (refresh).
I do the db.TableDefs.Refresh, but I guess this is not applied to the
project window for tables

thanks


Nov 12 '05 #3
> How can I make sure I remove all memory variables and such in code when I
close databases and forms.
Unfortunately, no bell goes off to alert you that you've forgotten to
release memory for objects that are no longer in scope. You'll have to do a
visual check in your code to make sure that variables for all objects have
been closed and set to "Nothing" before going out of scope.

For example, if you have a DAO.Recordset object based upon a Database
object, then you would need to close the DAO.Recordset object and set the
variable to "Nothing" first before doing the same for the Database object.
If you were to set the Database object variable to "Nothing" before you
tried to close the DAO.Recordset object, then you would get an "Object
invalid or no longer set" error message and would be unable to release the
memory for the DAO.Recordset object.

It's a good idea to release the memory for these objects as soon as your
code is finished with them, but you also need to make sure that your
error-handing routines handle the release of memory for the objects that
your procedures use. To make this simpler to maintain, many VB programmers
delay releasing the memory for the objects until the very end of the
procedure, where the error handler will also redirect the logic to flow
through after an error is handled. That way, programmers only have to code
memory releases for each object once for each procedure, and they know
exactly where to look for that visual check when code changes are made
later.

HTH.
Gunny

Coming soon:
For your Microsoft Access, database development and maintenance needs, see:
http://www.softomagixly.com

"Danny" <dannywork5@ZERO_SPAMhotmail.com> wrote in message
news:g9********************@news4.srv.hcvlny.cv.ne t... This is great. Thanks.

I have another question.
How can I make sure I remove all memory variables and such in code when I
close databases and forms.

Thanks

"'69 Camaro" <Ze*******@ZeroSpam.com> wrote in message
news:c2********@library1.airnews.net...
Hi, Danny.

Use the RefreshDatabaseWindow( ) method of the Application object to show
new objects that you have created in VBA code. The TableDefs.Refresh( )
method will refresh the TableDefs collection after an append or deletion

of
a TableDef object, but doesn't force a refresh of the database window
itself.

HTH.
Gunny

Coming soon:
For your Microsoft Access, database development and maintenance needs,

see:
http://www.softomagixly.com

"Danny" <dannywork5@ZERO_SPAMhotmail.com> wrote in message
news:kD********************@news4.srv.hcvlny.cv.ne t...
HI

How can I refresh the main project window in code in ms access 2000

For example, I create a new table, but when I minimize the form, the

table is not there until I do F5 (refresh).
I do the db.TableDefs.Refresh, but I guess this is not applied to the
project window for tables

thanks

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: J P Singh | last post by:
Hi Guys Wonder if someone can help me with this. I have a form where a user clicks a button which gives them a pop up windows to allow them to add the data. The user adds the data and click...
3
by: MEM | last post by:
Hello, I'd like to refresh the main or top most browser window from a child window. Specifically, child popup A is opened by a main browser window then child popup B is opened from within child...
2
by: Senna | last post by:
Hi everyone I have a little question. I would like to develop an application in Access 2002, but I want to give the main Access Window a fixed border. So the users can't modify the size of the...
1
by: Gary | last post by:
Is it possible to refresh a browser window when a secondary browser window has been closed? For example, I have a main web form that functions purely as a datagrid, when a user clicks on a...
1
by: muttu2244 | last post by:
Hi everybody I have couple of questions, 1) How can i refresh my desktop window(wallpaper), using the python script, after pasting some data on the desktop. 2) How can i run an exe file...
3
by: mcena | last post by:
Hi guys. I am developing this project where I ve been forced to include (add) another vb project. Problem is I cant move execution/control from the main project to the new/other project. Please,...
3
by: Peter | last post by:
Hi, I have a project with an MDI parent form (Main), which can contain any number of MDI children (Document). The Document form contains several user controls, designed as separate projects and...
2
by: ajain1 | last post by:
Folks, I want to refresh my child window after a particular interval of time, its working with the following code, but after getting refresh its always forward me on first URL not on the current...
2
by: srinivasyadavkota | last post by:
Hi Experts here, Pls help. I have opened the child window from the parent window.How to refresh the parent window when the child window is closed. Please help me. Thanks and Regards,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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,...

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.