•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 391,648 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,866 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 1332 | Replies: 1
![]() |
•
•
Join Date: Feb 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Okay, this is the situation. We are trying to set up a database where we input individuals for their personnel evaluations. We created a button in the form window and linked it to a macro that updates the "Date Due" block based on the date in the "Date Completed" block plus 18 months. So far this button seems to calculate the correct date and places the new date in the form window when pressed BUT it ONLY updates the FIRST record in the database.
HOW THE HECK DO YOU GET IT TO UPDATE THE RECORD YOU ARE CURRENTLY EDITING IN THE FORM WINDOW?!?! We would at least like to get the macro to update ALL records but Access has a restriction on how many times you can loop a single macro!!! The macro actually worked on the first 20 records in alphabetical order (we're not using a primary key for each record) but nothing beyond that because Access won't loop a macro more than 20 times.
PLEASE tell me there's a simple solution for this. Oh, and before you say "Visual Basic works much better and works a lot faster" let me tell you, none of us know how to use Visual Basic so we're stuck with these crappy macros provided by Access.
Any Help?
HOW THE HECK DO YOU GET IT TO UPDATE THE RECORD YOU ARE CURRENTLY EDITING IN THE FORM WINDOW?!?! We would at least like to get the macro to update ALL records but Access has a restriction on how many times you can loop a single macro!!! The macro actually worked on the first 20 records in alphabetical order (we're not using a primary key for each record) but nothing beyond that because Access won't loop a macro more than 20 times.
PLEASE tell me there's a simple solution for this. Oh, and before you say "Visual Basic works much better and works a lot faster" let me tell you, none of us know how to use Visual Basic so we're stuck with these crappy macros provided by Access.
Any Help?
Last edited by JGinside : Feb 1st, 2008 at 10:01 am. Reason: Spelling error in thrid paragraph
•
•
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation:
Rep Power: 30
Solved Threads: 264
yes in that you can get it to run an query
you can use SQL (query language) to do things like update records
this small sample adds $1 to all prices in the products table where the price is greater than $1 to begin with
for dates you need to use # around the date
you can use SQL (query language) to do things like update records
UPDATE products SET price = price+ 1.00 WHERE price < 1
this small sample adds $1 to all prices in the products table where the price is greater than $1 to begin with
for dates you need to use # around the date
Last edited by jbennet : Feb 1st, 2008 at 4:44 pm.
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
james.bennet1@ntlworld.com
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
•
•
•
•
access apple code combo computing core data deleting records from ms sql table where columns have duplicate values dropdownlist gadgets ip mac macbook macbook pro macworld microshaft microsoft microsoft windows module ms net news penryn pro processor reuse skype steve jobs vista updates voip web windows update windows vista
- Previous Thread: Help on criteria in an append query
- Next Thread: access switchboard



Linear Mode