Display message on the form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I am running a search but instead of having a message box pop up that says "no records found," I would instead like to have that message displayed on the form (in red print). I don't know if this is even possible but if it is, does anyone know the syntax

Thanks
Carrie
 
Hi Carrie,
You can use a TextBox on your form, say it's called txtRecords, then in the
forms module you could use Me.txtRecords="No Records Found"
The Forecolor property of the TextBox can be set to Red.
Regards

Carrie said:
Hello,

I am running a search but instead of having a message box pop up that
says "no records found," I would instead like to have that message displayed
on the form (in red print). I don't know if this is even possible but if it
is, does anyone know the syntax?
 
Place a label in the middle of your form and set the height and width to 0 and
make it not visible. In the appropriate place in your search code, make the
label visible and set the height and width to what you need.


--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com


Carrie said:
Hello,

I am running a search but instead of having a message box pop up that says
"no records found," I would instead like to have that message displayed on the
form (in red print). I don't know if this is even possible but if it is, does
anyone know the syntax?
 
Back
Top