BarryMK
4 strings are enough
- Local time
- Today, 03:30
- Joined
- Oct 15, 2002
- Messages
- 1,350
My form is now opening correctly filtered using OpenArgs but I'd like to set the form caption depending on the filter used. I have three different OpenArgs filters in all opening the same form with different criteria but I can't even get a simple if statement to work. I also tried a Case Select statement using OpenArgs.Value (a guess) but no luck there either.
I thought it would be something simple such as:
I've tried this in OnLoad, OnOpen and OnCurrent but to no avail. Is there some arcane syntax I'm missing or is it something so obvious I can't see it?
I thought it would be something simple such as:
Code:
If Me.OpenArgs = "Archived = False" Then
Me.Caption = "Complaints"
Else
Me.Caption = "Something else"
End If
I've tried this in OnLoad, OnOpen and OnCurrent but to no avail. Is there some arcane syntax I'm missing or is it something so obvious I can't see it?