latex88
Registered User.
- Local time
- Yesterday, 20:25
- Joined
- Jul 10, 2003
- Messages
- 198
I was somehow able to modify some codes, which I don't quite understand how I did it, but basically I used the recordset and looping methods to auto populate captions of a bunch of buttons in a form. Now I need to set an event to extract the first line of the button caption. Seems easy right? Well, not quite, at least not for me. The caption of these buttons are made up of two fields from a table and are wrapped around, meaning there are multiple lines. Part of the code looks something like this
Just to give you some more background, these buttons are populated with English on top and foreign language on the bottom. Now, I want to extract just the English part. By the way, the English may have more than one word. For example:
My name is Latex
Me llamo Latex
From the example above, I just want "My name is Latex" to return so I can pass it on to another area of the database. I hope I'm somewhat clear with my request.
Me(Variable).Caption = FieldName1 & chr(13) & chr(10) & FieldName2
Just to give you some more background, these buttons are populated with English on top and foreign language on the bottom. Now, I want to extract just the English part. By the way, the English may have more than one word. For example:
My name is Latex
Me llamo Latex
From the example above, I just want "My name is Latex" to return so I can pass it on to another area of the database. I hope I'm somewhat clear with my request.