BackStyle

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

What is the code to set a text box style to Transparent?
I tried
Forms![frmEmployee].txtName.BackStyle = Transparent
Forms![frmEmployee].txtName.BackStyle = 0

but no luck
 
Is the name of the textbox "txtName"? Open your form in design view, select
the textbox and look in the controls dropdown in the menu at the top of the
screen to check. Forms![frmEmployee].txtName.BackStyle = 0 is the correct
syntax if the form is named FrmEmployee and the textbox is named TxtName.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)
 
Yes, this is the correct syntex.
But the problem is when I click the text box it appears as white.
How do make it the same color as transparent even when I click the text box?
I don't want to disable it because I will set the tab index = 0.

Steve said:
Is the name of the textbox "txtName"? Open your form in design view,
select the textbox and look in the controls dropdown in the menu at the
top of the screen to check. Forms![frmEmployee].txtName.BackStyle = 0 is
the correct syntax if the form is named FrmEmployee and the textbox is
named TxtName.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)





Alan T said:
What is the code to set a text box style to Transparent?
I tried
Forms![frmEmployee].txtName.BackStyle = Transparent
Forms![frmEmployee].txtName.BackStyle = 0

but no luck
 
Select your Detail section of the form
Find the Back Color Property and copy the entry there (should be -2147483633
if you have the default color set for the form)
Select your text box and goto it's Back Color Property and past in the color
code
Now when you click on the text box it'll be the same coor as your form
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top