Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 08:52 AM
Starwood
Guest
 
Posts: n/a
Default Input Form Question

Using an Input Form, I'd like to split an input field value (text string)
into smaller substrings and automatically insert the substrings into other
fields in the same database record. Anyone have any suggestions on how this
could be done?

Thanks,

George


  #2  
Old November 13th, 2005, 08:52 AM
Steve
Guest
 
Posts: n/a
Default Re: Input Form Question

Look at the Left, Mid, Right, Instr and Len functions in the Help file. An
example of how they would be used is:
Me!SomeField = Left([MyInputTextString],3)
You would probably execute this code in the AfterUpdate event of SomeField.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com
www.pcdatasheet.com


"Starwood" <starwood@one.net> wrote in message
news:112ebc32qtcfv64@corp.supernews.com...[color=blue]
> Using an Input Form, I'd like to split an input field value (text string)
> into smaller substrings and automatically insert the substrings into other
> fields in the same database record. Anyone have any suggestions on how[/color]
this[color=blue]
> could be done?
>
> Thanks,
>
> George
>
>[/color]


  #3  
Old November 13th, 2005, 08:52 AM
Devonish
Guest
 
Posts: n/a
Default Re: Input Form Question


Use the AfterUpdate event. The input text needs to have a structure to
enable you to break it into sub-strings.

The functions instr() and mid() should help

Use instr() to find the location of predetermined markers and mid() to
extract
the substrings which you can then assign to other fields

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4  
Old November 13th, 2005, 08:53 AM
Starwood
Guest
 
Posts: n/a
Default Re: Input Form Question

Thanks for the suggestions. I'm familiar with the string functions, but was
unaware of the AfterUpdate event. I'll give it a try.

George

"Devonish" <no.spam@nowhere.com> wrote in message
news:422744df$1_2@127.0.0.1...[color=blue]
>
> Use the AfterUpdate event. The input text needs to have a structure to
> enable you to break it into sub-strings.
>
> The functions instr() and mid() should help
>
> Use instr() to find the location of predetermined markers and mid() to
> extract
> the substrings which you can then assign to other fields
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles