Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
grasping@straws
 
Posts: n/a
Default Updating database worksheet problem (Template Wizard)

Got my template for setting up client jobs info all made up & linked
(via Template Wizard setup) to a database worksheet (Excel 97) for
summaries of various stuff - start dates/employee responsible/etc.

So - I open my template & fill in the starting info; then do a "Save
As" ClientsName.xls - when I do this save, I know the database
worksheet opens in the background (I tested this by trying a
messagebox @ the "Workbook_Open" event) - in fact it seems to open
twice - but the first time I save, and even when I close the book & am
prompted to save again, there is no prompt to "Save to a new record"
or "Update existing record".

After I close the newly-saved workbook, then reopen it and save again
I get the prompt, but this is a pain for the other folks using this
setup (most of whom are barely computer literate; it's this bunch I've
been setting this up for, trying to make it as simple/automated as
possible). Shouldn't have to open it twice to get it to work!

If I'm correct,this "New record/update record" prompt & messagebox has
to be an Application-level event, no? I can't seem to trap it in
either Workbook...what I'm looking for is the syntax & event names (I
guess) to include in a Macro that'll FORCE the prompt at the first
save of the new workbook.....TIA to any who can help.

tm


  #2   Report Post  
grasping@straws
 
Posts: n/a
Default

Okay, so after hours of Googling & drilling down through countless
Messageboard posts/replies, I've come up with something that works; it
ain't pretty, not as elegant as I'd like, but it works, so here it is
(in case someone else runs into the same problem):

Application.Run "WZTEMPLT.XLA!Commit"

This takes a while to run - it fires the .xla in the background, as
well as opening the database Workbook - but it DOES force the "Add
Record" or "Update Record" messagebox on the FIRST save-as from my
Template workbook.

tm

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the Template Wizard with Data Tracking Excel 2003? liz braford Excel Discussion (Misc queries) 8 December 7th 05 06:50 PM
Template Wizard Addin Program millemj Excel Discussion (Misc queries) 7 December 11th 04 08:32 PM
Does the add in Template Wizard exist for Excel 2003 Casey Excel Discussion (Misc queries) 2 December 2nd 04 05:55 PM
How to use the template wizard with office 2003 choppernigel Excel Discussion (Misc queries) 3 December 1st 04 01:56 PM
How do I save a record from an excel template to a database in a . Fred Smith Excel Discussion (Misc queries) 1 November 30th 04 01:49 PM


All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"