Solved

Extract Portions of text box Information and insert into another textbox

Posted on 2013-05-10
4
414 Views
Last Modified: 2013-05-10
I need to assign the value of a text box "txtheading" from information from another field named "Remarks" the value needs all text up to the first semicolon example:

Dim header as string
header= remarks.first line up to semicolon
txtheading=header

Open in new window



Or
txtheading.value= header= remarks.first line up to semicolon

whichever works better...

The information should appear exactly as it appears up to the semicolon including spaces and case
0
Comment
Question by:mickeyshelley1
  • 2
  • 2
4 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39155428
Dim header as string
header= Split("" & Remarks, ";")(0)
txtheading=header

Open in new window

0
 

Author Comment

by:mickeyshelley1
ID: 39155433
Trying it
0
 

Author Closing Comment

by:mickeyshelley1
ID: 39155454
Thanks AGAIN : mbizup that works great!!! and thanks for responding so quickly
0
 
LVL 61

Expert Comment

by:mbizup
ID: 39155497
Glad to help :)
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reading the code behind a form - via VBA 3 31
VBA modules import 4 57
Access/Visual Basic Question 3 24
Calculated field not displaying as currency on form 4 20
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question