Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / October 2005

Tip: Looking for answers? Try searching our database.

Continuous Forms - Event Fire on Each Record?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jason.gyetko@epower-inc.com - 18 Oct 2005 13:10 GMT
I know on reports you can use the Detail_Format to run code against
each individual record, is there a way to do that on a form?  Thanks.
Duane Hookom - 18 Oct 2005 13:22 GMT
Use the On Current event.

Signature

Duane Hookom
MS Access MVP

>I know on reports you can use the Detail_Format to run code against
> each individual record, is there a way to do that on a form?  Thanks.
Ken Snell [MVP] - 18 Oct 2005 13:23 GMT
Use the form's Current event.

Signature

       Ken Snell
<MS ACCESS MVP>

>I know on reports you can use the Detail_Format to run code against
> each individual record, is there a way to do that on a form?  Thanks.
Duane Hookom - 18 Oct 2005 13:24 GMT
I should have mentioned that if you change a control's property in the On
Current event of a continuous form, the property changes for all records in
the form.

Signature

Duane Hookom
MS Access MVP

>I know on reports you can use the Detail_Format to run code against
> each individual record, is there a way to do that on a form?  Thanks.
jason.gyetko@epower-inc.com - 18 Oct 2005 13:40 GMT
I noticed that.  So is there no way then to run a process for each
record on that form?  I can probably accomplish what I need using more
queries for the record source, but it would be easier the other way.
Here's my situation if you can offer any alternatives, I would
appreciate it.  Thanks again.

I have a continuous form each record has a milage number reocrded with
a particular license number.  I need to take that license number, then
look back in the table at the last record (with the same license
number), and see what the milage was there, then I have to subtract
that milage number from the first milage number and post the result.
Jason Gyetko - 18 Oct 2005 18:49 GMT
Well, I thought I could do it within my Record Source query, but now
that record source is not updateable.  Everything looks ok, all my data
is displayed correctly, but when I go to update it from within my form,
it will not update because of the joins I am using.
Duane Hookom - 19 Oct 2005 06:11 GMT
You could use a domain aggregate function such as DMax(). The form might be
slow to load and display.

Signature

Duane Hookom
MS Access MVP

> Well, I thought I could do it within my Record Source query, but now
> that record source is not updateable.  Everything looks ok, all my data
> is displayed correctly, but when I go to update it from within my form,
> it will not update because of the joins I am using.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.