Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 13th, 2005, 11:21 AM
summer brew summer brew is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 12 summer brew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 8 sec
Reputation Power: 0
Remotely Updating a Table

I have two tables: tblRTA3 & tblRTA4

I export them to a closed database, I then have to run this code in the database I'm working in to update them before importing them back to the database I have open:

Private Sub btnRTA3_Click()
Me.txtMsg = vbNullString
Me.txtMsg = "Updating tblRTA3 . . . Please be patient !"
Me.Repaint
Call CalcDaysBetweenOrders("tblRTA3")
Me.txtMsg = "Completed Update Successfully"
End Sub

Private Sub btnRTA4_Click()
Me.txtMsg = vbNullString
Me.txtMsg = "Updating tblRTA4 . . . Please be patient !"
Me.Repaint
Call CalcDaysBetweenOrders("tblRTA4")
Me.txtMsg = "Completed Update Successfully"
End Sub


How would I go about doing this remotely from an open database? I have come up short searching for a solution.

A great deal of thanks in advance.

-Paul

Reply With Quote
  #2  
Old July 13th, 2005, 11:31 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
Just a question...why do you export the two tables into another database to perform some functions and then import them back into your database? Is there a reason you can't do this in the current application?

lwells

Reply With Quote
  #3  
Old July 13th, 2005, 12:53 PM
summer brew summer brew is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 12 summer brew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 8 sec
Reputation Power: 0
The tables are created from MakeTable queries and bloat prior to compacting and it's faster to dump them into a seperate database and compact them as the only tables in that database and then import them back in.

Reply With Quote
  #4  
Old July 13th, 2005, 02:50 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
I don't think I completely understand what you are trying to do. Database bloat will occur when you delete a table and not compact (just one of many causes). Running a maketable query will delete the target table before creating the new table. Thus from your post are you sending the table from your maketable query to an external database, performing some sort of procedure and then importing the table?
If so, this is all good and well however if you are having to delete an existing table in your application prior to importing the table back in, then you are still going to have database bloat. If this is the case, then why even bother with using an external database? Run the queries and compile in the current application. What am I missing here?

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Remotely Updating a Table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway