Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Edit Box

Status
Not open for further replies.

stanmurphy

Technical User
Oct 14, 2000
89
Hello All,

I am using an Edit Box on a form. When I click anywhere below the first line in the Edit Box to give it focus, the cursor appears to be on the second line. If I enter text there and save with a Gather, the text is not saved to the record.

If, when the box receives focus, I move the cursor up to the first line before typing, any entry is Gathered properly.

The variables are Public and set to "" in the main program at startup.

Any ideas??

Thanks

Stan Murphy
 
Well, the first thing I would ask is ... Why are you doing things with "Gather" and "Public Variables" ?

Why not use the controls the way they were designed to be used ? Assign the Control source, etc ...

All that other hocus - Pocus ... about having the cursor on the first line or second line ... will disappear.



Don
dond@csrinc.com

 
We all have our own methods. Does anyone else have a comment on my problem with the edit box?
 
HI
In the GOTFOCUSEVENT of the Edit box, put the code..
KEYBOARD "{CTRL+HOME}"
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top