Trigger a command from Line Feed

DaveGKeller
07-18-2003, 10:39 AM
Hi Folks,

I have a little program running that takes an incoming text string from a caller ID box and beaks it up into seperate text boxes. This works great but I have to hit a command button on the form in order to break the string. Could you please tell me the best way to bypass the command key and cause this function to execute when the string comes in by itself? The last part of the caller ID is always a Carriage Return and Line Feed.

Thanks in advance,
Dave

Iceplug
07-18-2003, 10:41 AM
Is the string read in all at once?
You could check if InStr(text, vbCrLf) Then Call Command1_Click
:)

DaveGKeller
07-18-2003, 03:07 PM
Thanks very much.
That did the job.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum