Infinite
More left to learn.
- Local time
- Today, 15:38
- Joined
- Mar 16, 2015
- Messages
- 402
Hello all! I have a:
List box named: lstEvents
and 2 forms
Main 1: frmEvents
2nd 1: frmEventsEdit1
I have the codeing from here
http://www.access-programmers.co.uk/forums/showthread.php?t=188663
Now, the problem im having is, that for the shows I have this code:
That is so that each show has the month and year attached to the name, so its easier to find out when they were, from just looking at them in the list box.
But, if I use the search that John (The OP of that link) then if I were to search for 2015, and try to open a show, it just opens to a blank frmEventsEdit1. Even though I currently just tell it:
I would like two things.
Either, to figure out why that isn't working, or 2, to get this If sentence im working on that goes like this:
Either of those im fine with. Though I would prefer the first option more, I will be plenty thankful for either of them.
Thanks!
List box named: lstEvents
and 2 forms
Main 1: frmEvents
2nd 1: frmEventsEdit1
I have the codeing from here
http://www.access-programmers.co.uk/forums/showthread.php?t=188663
Now, the problem im having is, that for the shows I have this code:
Code:
ShowNames: ([ShowName] & " " & Format([StartDate],"mm-yyyy"))
That is so that each show has the month and year attached to the name, so its easier to find out when they were, from just looking at them in the list box.
But, if I use the search that John (The OP of that link) then if I were to search for 2015, and try to open a show, it just opens to a blank frmEventsEdit1. Even though I currently just tell it:
Code:
DoCmd.OpenForm "frmEventsEdit1", , , "EventID = " & Me.lstShows
I would like two things.
Either, to figure out why that isn't working, or 2, to get this If sentence im working on that goes like this:
Code:
If "EventID" = " " Then MsgBox "Error, please try again" Else DoCmd.OpenForm "frmEventsEdit1", , , "EventID = " & Me.lstShows
Either of those im fine with. Though I would prefer the first option more, I will be plenty thankful for either of them.
Thanks!