I've got a report that uses a user-entered parameter value to bring up a report on an OUTBOUND truck. It works just fine for outbound trucks--the thing is, the truck numbers vary between inbound and outbound, and there's no pattern to it.
What I would like to be able to do is this: On NoData, search for the entered truck number in the INBOUND list. If it is there, a msgbox would appear saying "This is an inbound truck." If it is not, that means it is in neither list (it would have to be in one or the other. If it's not in the inbounds, we already know it's not in the outbounds, so it must not exist yet), so then a msgbox would appear that says "This truck number does not exist!"
Unfortunately, I don't know how to do this.
And I'm learning SQL (slooooooowly), so it would be great if someone could help me out with the necessary code and maybe explain it a little!
Thanks guys! Really appreciate it!!
Rachel
What I would like to be able to do is this: On NoData, search for the entered truck number in the INBOUND list. If it is there, a msgbox would appear saying "This is an inbound truck." If it is not, that means it is in neither list (it would have to be in one or the other. If it's not in the inbounds, we already know it's not in the outbounds, so it must not exist yet), so then a msgbox would appear that says "This truck number does not exist!"
Unfortunately, I don't know how to do this.
And I'm learning SQL (slooooooowly), so it would be great if someone could help me out with the necessary code and maybe explain it a little!
Thanks guys! Really appreciate it!!
Rachel