A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

updating all the records in a filter



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2004, 04:34 PM
Dan
external usenet poster
 
Posts: n/a
Default updating all the records in a filter

I have a form that is connected to a querry that contains
all of the records for this form. On this form I have 3
list boxes that is each filtered differently. I also have
a report that has the same filter that corresponds to the
row source for each list box. Under each list box there
is a print button that prints the report that corresponds
to the list box.

After the report is printed I want to save the date that
it was printed only for the records that are in the list
box/report. I will save the date into a record called
[Date Of First Letter], [Date Of Second Letter], and
[Date Of Third Letter]

The row source that I use for the first list box is:
SELECT [Status Members].[Full Name] FROM [Status Members]
WHERE [Number Of Letters Received]=0 And [First Letter]
="Feedback Letter";
  #2  
Old June 2nd, 2004, 03:07 AM
Eric Cárdenas [MSFT]
external usenet poster
 
Posts: n/a
Default updating all the records in a filter


I have a form that is connected to a querry that contains
all of the records for this form. On this form I have 3
list boxes that is each filtered differently. I also have
a report that has the same filter that corresponds to the
row source for each list box. Under each list box there
is a print button that prints the report that corresponds
to the list box.

After the report is printed I want to save the date that
it was printed only for the records that are in the list
box/report. I will save the date into a record called
[Date Of First Letter], [Date Of Second Letter], and
[Date Of Third Letter]

The row source that I use for the first list box is:
SELECT [Status Members].[Full Name] FROM [Status Members]
WHERE [Number Of Letters Received]=0 And [First Letter]
="Feedback Letter";

--------------------
For the first list box, you can use an UPDATE statement after the print
statement as follows:

UPDATE [Status Members] SET [Date of First Letter] = Date()
WHERE ([Number Of Letters Received]=0
And [First Letter] ="Feedback Letter");

Hope this helps,

--
Eric Cárdenas
Senior support professional

This posting is provided "AS IS" with no warranties, and confers no rights.

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:23 AM.


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