473,382 Members | 1,749 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,382 software developers and data experts.

undo for a form in datasheet view

14
Hi,

I have a list of offices that I've put in a form in datasheet view (so all the records show at once).

I want my users to be able to update the list, and then when they click a button, it will search through all my records and update the offices everywhere they appear.

I did this with another form that was one record at a time view by storing the values that are loaded when the form opens or the record changes. But with this one, I'm not sure how to do that, since it's all the records at once.

I had a suggestion of Me("field").oldValue, but again, not sure how this would work with multiple records, AND not sure what oldValue this gives -- the one from load? the first change? 2nd change? etc.

Any ideas?

Thanks,
Lea Ann
Oct 19 '06 #1
1 2286
MMcCarthy
14,534 Expert Mod 8TB
Your problem is with your structural design.

If this is a list of offices that is referenced by other tables and limited to the values in this table then it should be a lookup list with a ID field primary key added

e.g.

ID Office
============
113 HQ
114 Boston
115 New York

Every table that referenced these offices would do so on the lookup list and store the ID field rather than any other field. Therefore any changes to any other field in this table would be updated automatically to the other tables because the ID wouldn't change.



Hi,

I have a list of offices that I've put in a form in datasheet view (so all the records show at once).

I want my users to be able to update the list, and then when they click a button, it will search through all my records and update the offices everywhere they appear.

I did this with another form that was one record at a time view by storing the values that are loaded when the form opens or the record changes. But with this one, I'm not sure how to do that, since it's all the records at once.

I had a suggestion of Me("field").oldValue, but again, not sure how this would work with multiple records, AND not sure what oldValue this gives -- the one from load? the first change? 2nd change? etc.

Any ideas?

Thanks,
Lea Ann
Oct 20 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Georges Heinesch | last post by:
Hi: I have a tables in relationship to each other. When I open the main table (table 1), I see a "+" at the very left of every record. Clicking on the "+" expands the data of the linked table...
2
by: Simon Pleasants | last post by:
Am something of a newbie at this, so please bear with any stupid questions. I have created a database to track shipments that we import. The information is stored in a table and I have created...
5
by: Danny | last post by:
I am using a switchboard to load a form that I would like to display in datasheet view or table view. But it does not go into that mode when using the switchboard wizard to launche the form. is...
18
by: Darryl Kerkeslager | last post by:
I don't do much with subforms - in fact I've deliberately avoided them - but .... I have a tab control that will contain several subforms, each bound to a separate table, and each table/subform...
1
by: sasan3 | last post by:
when I set visible=false, then entry is not visible in form view, but still shows up in datasheet view. How do I make a field not to show based on some condition in datasheet view? Tx.
5
by: Newbie | last post by:
I would like to display certain columns from a table on a form. One of my columns that I want to show is a Yes/No field so that my users can pick their players for a fantasy football week. If...
7
by: ARC | last post by:
I've noticed that if you use code for the before update command for unbound controls, it doesn't really work. I tried the following: Me!ExportedYN.undo Cancel = True DoCmd.CancelEvent Exit...
1
by: gnews | last post by:
I'm learning Access (2002) as I go, but I can't find how to open a form from a datasheet view. I want to be able to view records in the datasheet and click on a link to open a form to allow me...
2
by: Alan Forsyth | last post by:
That rather long subject says it. In Access97 running on XP - I want to display a Maximized size Form01, then open a Restore size Datasheet View Form02 on top of the first Form. PopUp won't give...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.