access2003 form field cursor

  • Thread starter Thread starter Programmer - wannaB
  • Start date Start date
P

Programmer - wannaB

I have a drop down field to select an invoice to print, but if the field has
data in it already from a previous selection The cursor appears as just a
line at the end of the field. How can I make the cursor select the whole
field without the user needing to click and drag??

I thought I remembered doing this before, by a property setting, but I can
find it. does someone out there know how to do this??
 
You misunderstood my question;
by click and drag I am saying that they need to click the mouse in the combo
box and drag across the field to highlight the data already there,and then
either remove it or begin typing to replace what they hightlighted and get
there new selection.
I have already added Me!<formname>.dropdown
to on click. Now I would like for the curson to select the whole field
when the user clicks the field. Can I add something like SELECTALL to the
 
Okay, sorry I misunderstood.

You can use the SelStart and SelLength properties to do this. Use the
combo's Got Focus event

With Me.MyCombo
.SelStart = 0
.SelLength = Len(Me.MyCombo)
End With
 
Thanks that helped.
All I really needed was
Me.MyCombo.SelStart = 0
With that when they click at the end of the field it will highlight
everything to the cursor. it works great thanks.
============================
 

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