Solved Need help with form reference/ conditional formatting (1 Viewer)

AGNewton5

Registered User.
Local time
Today, 07:02
Joined
Aug 20, 2019
Messages
28
I have a Form that I am wanting to reference the entered date in a texbox [jtblPositionTraining]![DateOfCourse] to the date that the course was last updated, which is in a different table [tblTraining]![RevDate]. I am wanting to use conditional formatting to show when [jtblPositionTraining]![DateOfCourse] is dated older than [tblTraining]![RevDate]. Preferably get the textbox background of [jtblPositionTraining]![DateOfCourse] to be green when it is newer that the RevDate and red when the date is older than the RevDate. I was wanting to make the reference not visible afterwards on the form (something I think I can do). The database that I have can be shared if needed, because I am not sure if the info that i provided is even helpful.
Use Administrator Form to enter
Password 1Newton1
The form is frmPositionsandCourses
 

Attachments

  • MoldTeamTrainingDatabase 20.0.zip
    782.9 KB · Views: 104
Last edited:

CJ_London

Super Moderator
Staff member
Local time
Today, 13:02
Joined
Feb 19, 2013
Messages
16,627
perhaps use the dlookup function

field value is....less than....dlookup("RevDate","tblTraining")
 

AGNewton5

Registered User.
Local time
Today, 07:02
Joined
Aug 20, 2019
Messages
28
perhaps use the dlookup function

field value is....less than....dlookup("RevDate","tblTraining")

Is there a way that I can do this and reference a specific RevDate on tblTraining based on the record that is being added on the form? This is almost doing what I am wanting to do.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:02
Joined
May 7, 2009
Messages
19,247
I the Date field has already Conditional Formats.
i added an Unbound textbox to the right and applied the
conditional format to it.

i also added the training revision date to your form but hid it.
 

Attachments

  • mold.zip
    745.6 KB · Views: 148

AGNewton5

Registered User.
Local time
Today, 07:02
Joined
Aug 20, 2019
Messages
28
I the Date field has already Conditional Formats.
i added an Unbound textbox to the right and applied the
conditional format to it.

i also added the training revision date to your form but hid it.


Thank you arnelgp! You are a lifesaver. I have been fighting that for too long.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:02
Joined
May 7, 2009
Messages
19,247
you're welcome:)
you should add Label to the unbound textbox that will explain its purpose.
 

Users who are viewing this thread

Top Bottom