Advertisement

12.17.2007 at 09:08AM PST, ID: 23028391
[x]
Attachment Details

Need max date; complicated with forms and subforms....

Asked by scbdpm in Microsoft Access Database

Tags: ,

Bear with me as I explain this.....

I have a db with a main form and several subforms. The DB is being used as a contact log to collect various pieces of information that my team needs to track while working with our clients.

So, the way it works, when you open the form, it shows the information a particular client. Each of the subforms shows information of a particular type on that client.

One of these is barriers that a particular client may be encountering when we work with them.
The 'barrier' subform shows the date the barrier was identified, the barrier and whether or not it is active.

My troubles... I've been asked to create an alert/pop-up that appears when barriers haven't been updated in a month's time.

I've successfully gotten a MsgBox to show up if I use this on the subform's load event:
Dim rs As DAO.Recordset
Dim TheDate As Date    ' Declare variables.
Set rs = Me.RecordsetClone
TheDate = rs.Fields("MaxOfBarrierDate")
If DateDiff("d", TheDate, [Now]) >= 30 Then
MsgBox "Barriers not updated in more than 30 days"
End If

But, the problem is that on the main form, there are navigation buttons which will take you to a different client... and when clicking these navigation buttons, the subform's load event doesn't fire

I've tried to call a function on the subform when clicking those navigation buttons but have failed :(

HELP!!!!
Start Free Trial
[+][-]12.17.2007 at 09:16AM PST, ID: 20486230

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.17.2007 at 09:30AM PST, ID: 20486351

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.17.2007 at 09:58AM PST, ID: 20486568

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.17.2007 at 10:51AM PST, ID: 20486884

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.18.2007 at 08:28PM PST, ID: 20497504

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.19.2007 at 07:51AM PST, ID: 20500374

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.19.2007 at 09:41AM PST, ID: 20501296

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: max, subform
Sign Up Now!
Solution Provided By: boag2000
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628