• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Programming question

I'm working on VB assignment for class and am a little stuck. I've got a 2D array for customer info that is pulling from an access database. I want to populate a combobox with customer name info from the array. The problem I've run into is the first name and last name are seperate fields in the database. Is there a way I can combine those 2 fields in either the array or the combobox.

Ridicule me if you must, as long as I can get either an answer or a nudge in the right direction. 🙂
 
Why don't you just concatonate the stings? I'm not familiar with how one would do this from Access into VB but I can't imagine it's that hard. Just do firstname && lastname.
 
I'm sure there is someway to concatnate the to strings. I'm not sure it might be something like + or & like
string1 & string2 or string1 + string2
 
Originally posted by: BornStar18
Why don't you just concatonate the stings? I'm not familiar with how one would do this from Access into VB but I can't imagine it's that hard. Just do firstname && lastname.

Thanks, I'm an idiot. Didn't even consider that route.

This thread can be locked now. 🙂
 
Originally posted by: Spencer278
I'm sure there is someway to concatnate the to strings. I'm not sure it might be something like + or & like
string1 & string2 or string1 + string2

both will work in vb
 
Originally posted by: Feldenak
Originally posted by: BornStar18
Why don't you just concatonate the stings? I'm not familiar with how one would do this from Access into VB but I can't imagine it's that hard. Just do firstname && lastname.

Thanks, I'm an idiot. Didn't even consider that route.

This thread can be locked now. 🙂


His suggestion might have been a typo, but && is incorrect. The single & as Spencer suggested is the best route to go. && is a common binary logical and operator in C-derivative languages.
 
Originally posted by: Descartes
Originally posted by: Feldenak
Originally posted by: BornStar18
Why don't you just concatonate the stings? I'm not familiar with how one would do this from Access into VB but I can't imagine it's that hard. Just do firstname && lastname.

Thanks, I'm an idiot. Didn't even consider that route.

This thread can be locked now. 🙂


His suggestion might have been a typo, but && is incorrect. The single & as Spencer suggested is the best route to go. && is a common binary logical and operator in C-derivative languages.
Bah, I figured I did it wrong. I have a very strong background in C and a very weak one in VB.
 
Originally posted by: BornStar18
Originally posted by: Descartes
Originally posted by: Feldenak
Originally posted by: BornStar18
Why don't you just concatonate the stings? I'm not familiar with how one would do this from Access into VB but I can't imagine it's that hard. Just do firstname && lastname.

Thanks, I'm an idiot. Didn't even consider that route.

This thread can be locked now. 🙂


His suggestion might have been a typo, but && is incorrect. The single & as Spencer suggested is the best route to go. && is a common binary logical and operator in C-derivative languages.
Bah, I figured I did it wrong. I have a very strong background in C and a very weak one in VB.

nothing to be ashamed of, vb is pretty useless apart from for learning imo
 
Originally posted by: franguinho
Originally posted by: BornStar18
Originally posted by: Descartes
Originally posted by: Feldenak
Originally posted by: BornStar18
Why don't you just concatonate the stings? I'm not familiar with how one would do this from Access into VB but I can't imagine it's that hard. Just do firstname && lastname.

Thanks, I'm an idiot. Didn't even consider that route.

This thread can be locked now. 🙂


His suggestion might have been a typo, but && is incorrect. The single & as Spencer suggested is the best route to go. && is a common binary logical and operator in C-derivative languages.
Bah, I figured I did it wrong. I have a very strong background in C and a very weak one in VB.

nothing to be ashamed of, vb is pretty useless apart from for learning imo

An equally ignorant and tangential question.
 
Back
Top