Solved

Which "event" can be used after a record in a Form is displayed?

Posted on 2010-09-22
6
589 Views
Last Modified: 2012-05-10
I am developing an Access 2007 front-end to a SQL Server 2007 database.
I have a an Access Form that displays a customer order and allows it to be modified.
"Notes" can be added to an order and I would like to "pop up" these notes in a separate form when an order record is first displayed to make the user aware of them.
When I do this in the "Form_Current" event, my notes pop up OK, but this happens before the order is fully displayed. I would like the Order Form to be displayed first and my notes popped up before the operator starts to work on the order.
I have tried other events including "After Rendering" and "After Final Rendering" but these never appear to happen.

Can anyone tell me which event I should use to display my notes just after the order form has been populated and displayed?

Many thanks.
0
Comment
Question by:colinasad
6 Comments
 
LVL 65

Expert Comment

by:rockiroads
Comment Utility
the afterfinalrender I think is for pivotcharts not record loaded

Are these notes optional? If so then would it make sense to have a button called Open Notes which then opens up your notes form?

Failing that maybe add

me.setfocus

after the call to open notes so that your main form has focus and notes window would be behind main form
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 250 total points
Comment Utility
If you are not using the timer Event for anything else, you could use the

Form_Current event to set the TimerInterval to 1000 (for a 1 second delay), then use the Timer Event to Open your Notes form and then reset the TimerInterval to 0.
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
"Which "event" can be used after a record in a Form is displayed?"
After a record is 'displayed', either by a search or using the Nav buttons, the Form Current event triggers.

You may find this handy also:

http://office.microsoft.com/en-gb/access/HP051867611033.aspx

"Can anyone tell me which event I should use to display my notes just after the order form has been populated and displayed?"

The cleanest way to do this is with a Button that opens a Note form.

mx
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Author Comment

by:colinasad
Comment Utility
Thanks for the prompt responses.
I'm away from that project at the moment, but will try some of the suggestions when I get back to it.

Just for further information.
I do already have a "tab" on the main Order Form that allows the operator to see and edit the notes. I also have a "There Are Notes" "label" on the main Order Form that I make visible if there are notes associated with the order, but I keep it invisible if there are no notes. However, my client wants the full notes to be thrown up in the operator's face when they open an order that has them. This will force the operator to read the notes which usually contain important details about how the order should be handled.

I am currently opening a "modal" Notes Form from the Order Form's "Form_Current" procedure, but the current order record isn't actually displayed on the screen at that time, but immediately appears when the Notes Form is closed. I just feel it would look better if the populated Order Form was visible in the background when the Notes are displayed. As well as making the Notes Form "modal", I also use the "acDialog" mode when I open it from my main Order Form - might that be preventing the Order Form from becoming visible?

I'll experiment further when I work on that project again tomorrow.

Many thanks.
0
 
LVL 65

Assisted Solution

by:rockiroads
rockiroads earned 250 total points
Comment Utility
I have tried but was unable to reproduce your problem with main form not displaying data.

Are there any unbounded elements in there?.or calculated fields or something or is this strictly based on the form's recordsource so you have no other processing on form_current

if u use acDialog then there should be no need to set it as Modal
0
 

Author Closing Comment

by:colinasad
Comment Utility
I think it was my "acDialog" mode that brought up my Notes Form but delaying the displaying of my Order Form. After removing "acDialog", my Order Form is displayed but hides the Notes Form which is displayed first but still "modal".
I used the "Timer Interval" on my Notes Form to bring it to the fore after 1 second.
Thanks for the suggestions - hope you don't mind me splitting the points.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now