Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenate two fields 1

Status
Not open for further replies.

ramnewbietoaccess

Programmer
Nov 4, 2002
52
US
I have two fields on my form which i would like to concatenate in a separate field.

Ex:

Store Number Product Code Concatenate
102 AAAA 102AAAA


The Product code automatically populates in the concatenate field. How can i make the field insert the store number so that it appears in the field before the product code?

I hope I explained this clearly enough. THank you in advance for help.
 
Use
Code:
Me.Concatenate.Value= Me.StoreNumber.Value & Me.ProductCode.Value
OnEnter Event of Concatenate


Zameer Abdulla
Jack of Visual Basic Programming, Master in Dining & Sleeping
Visit Me
 
Hi,

I just tried the following command:

Me.Concatenate.Value = Me.ImageName.Value & '_t.jpg'

and got a "Compile error: Method or data member not found". I am trying to populate a field called ThumbnailImage with the contents of "ImageName" that shows up earlier in the form, following that with "_t.jpg". Basically what I want to do is create an automatic name for a thumbnail of an image based on the ImageName field. I'm putting this in the "On Enter" section.

Thanks,

Mark
 
Concatenate" was the name of ramnewbietoaccess's field.

From what you've said it sounds like you need:

Me.ThumbnailImage.Value = Me.ImageName.Value & "_t.jpg"

HTH,
Collen
 
Collen,

Thanks - that was perfect! Now I understand better what is happening.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top