MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 4th, 2002, 10:23 PM   #1
Widya
New Member
 
Join Date: Mar 2002
Posts: 2
Default

Hello,

I have a problem in creating a form for databases. Every time I record a macro to save the data I've inputted in the form I have created into the database all the macro does is save the worksheet. It doesn't ask me if I want to update the current record, or create a new record, and looking at the database file confirms the fact that nothing has been written to the database. However, when I click on the save icon or file menu/save, it does ask me for those options.

I record the macro by clicking on file menu/save (whereupon it *does* ask me if I want to create a new record, but that doesn't reflect that in practice.) and then saving the macro.

Any advice will be appreciated. I am using Excel 2000.
Widya is offline   Reply With Quote
Old Mar 5th, 2002, 08:09 PM   #2
Ziggy
Board Regular
 
Join Date: Feb 2002
Location: Ontario, Canada
Posts: 326
Default

what database are you using, I don't exactly follow waht you are trying to do.
Ziggy is offline   Reply With Quote
Old Mar 5th, 2002, 08:49 PM   #3
keith
Board Regular
 
Join Date: Mar 2002
Posts: 88
Default

not sure what the fix is yet but it sounds like you are tryin to use the "template wizard" add-in to add records to an Excel List. If this is the case it should update the record when the sheet is saved. Forget the macro for a minute. Does it update on a manual save of the form worksheet? If this is not what you are try to do then disregard this post...
keith is offline   Reply With Quote
Old Mar 6th, 2002, 04:21 PM   #4
Widya
New Member
 
Join Date: Mar 2002
Posts: 2
Default

Ziggy: I am using MS Excel to create a form (using the template wizard) and associated database workbook (created by the wizard.)

Keith: It sounds like what you refer to as a 'record' is what I refer to as a 'field'. To me a record is the data inputted into a form and then saved in the database worksheet.

When I do a manual save (ie. click on the save icon or go to File Menu/Save) it does ask me if I want to update the current record or add a new record to the database. When I try using a 'save' macro that I have recorded all it does is save the form worksheet- it does not save any data I have inputted in the form worksheet into the database, nor does it give me any prompts (as outlined above.)

Widya Santoso
Widya is offline   Reply With Quote
Old Apr 6th, 2002, 12:13 PM   #5
JeremyinCanada
New Member
 
Join Date: Apr 2002
Posts: 11
Default

I am having the same problem. I am putting together a "database" in Excel since my employer refuses to invest in Access.

I have designed an input template for the database (using the template wizard). Basically, I want to set up a macro (by pushing a control button)that will automatically update the database.

When I do the save MANUALLY it prompts me for the dialog box asking if I want to 1) update or 2) create a new record. However, when I try to autmote it (after recording the macro) it only SAVES. It does not prompt for how I want to handle the record and THEREFORE DOES NOT update the database. What gives? Any assistance would be of assistance. I can't imagine I'm the only person in the world that can't figure this out...can I?

Was this issue addressed and repaired in a service pack I have yet to download or something? Any help would be appreciated.

Thank you.
JeremyinCanada is offline   Reply With Quote
Old Jun 5th, 2002, 08:51 AM   #6
isbister
New Member
 
Join Date: May 2002
Posts: 14
Default

I tackled this issue as well. After wrestling with the Template Wizard with Data Tracking add-in, I decided it was easier to write a macro which updates the database the add-in helped me create. See my source at the end of http://www.mrexcel.com/board/viewtop...0382&forum=2&4

-Brad
isbister is offline   Reply With Quote
Old Nov 22nd, 2002, 12:44 PM   #7
Going Cross Eyed
New Member
 
Join Date: Oct 2002
Location: London
Posts: 42
Default

Dim AdminPrinter As String
Dim OldPrinter As String
I had the same problem and sorted with the code below: hope it helps


Const File_DB = "COMMON"
Const File_ATW = "WZTEMPLT"
Set CurrWorkbook = ActiveWorkbook
CurrWorkbook.Activate
OldPrinter = Application.ActivePrinter
AdminPrinter = "\londonHP4600N-Admin-1 " & GetNode
Application.Run File_ATW & ".XLA!Commit"
SaveLocation = ""
Going Cross Eyed is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes