Hi,
I have a small bit of VBA code that looks up form fields and the data within those fields is set to a string.
The problem is some of the data within those fields has a space, any data after that space is missed the full string is missing.
The code above is how the strings are being defined and set, the ItemNum can have data in the following format "123 123 123" only the first 123 is picked up am I setting this incorrectly.
Many Thanks
Karl
I have a small bit of VBA code that looks up form fields and the data within those fields is set to a string.
The problem is some of the data within those fields has a space, any data after that space is missed the full string is missing.
Code:
Dim stAppName As String
Dim stEmailTo As String
Dim stEmailCC As String
Dim stOrderNo As String
Dim stItemNo As String
Dim stQty As String
Dim stMessage As String
stEmailTo = Forms![AddressBook]![Email]
stEmailCC = Forms![AddressBook]![CC]
stOrderNo = Forms![AddressBook]![OrderNum]
stItemNo = Forms![AddressBook]![ItemNum]
stQty = Forms![AddressBook]![Qty]
stMessage = Forms![AddressBook]![Message]
The code above is how the strings are being defined and set, the ItemNum can have data in the following format "123 123 123" only the first 123 is picked up am I setting this incorrectly.
Many Thanks
Karl