Adding a combo box to a query

Joceline

Registered User.
Local time
Yesterday, 19:29
Joined
Apr 19, 2012
Messages
16
hi,

I'm trying to write a query from a table that has a combo box. I want to have the information in the combo box added to the AS NAME so that i have first name, last name and then their designation all in one. I'm able to have the first and last name group, but I can't seem to add the designation because it's a combo box.

Does anyone know how to fix this? Any suggestions would be great!!
Thanks.
 
hi,

here is the SQL that i currently have: SELECT [TBLContactDetails.strcontactdetailsFirstName] & " " & [TBLContactDetails.strcontactdetailsLastName] AS NAME, tblContactdetails.strcontactdetailsDesignation, tblGroupDetails.strGroupdetailsdescription, tblContactGroupsjunction.[strcontactgroupRole In Group]

because the designation is a combo box, I can't add it to the AS NAME section.

does this help?
 
hi,
i was able to figure out how to make it work. Now i would need to create a script that will have all of my address information such as address, city, province, postal code and phone numbers as one.

any ideas?

really appreciate your taking the time to help me out. i promise one day when i'm good at this, i'll pass it forward!!
 
yes, i would like to have my address show on "one line" for a report i'm trying to create! if you have any suggestions, they would be welcomed.

thanks for replying.
 
You can concatenate the addresses like this:
Code:
[Address] & " " & [City] & " " & [Province] & " " & [PostalCode]
try it out in a query.
 
perfect! that works beautifully.

do you know how to add the Null if there are empty fields?
 
You mean how to get rid of the extra space if a field is empty?
 
yes! what would i need to add to the script to accomplish this?
 
thanks! this is a great article. i'm fairly new at this database stuff and trying to learn most of it on my own.

you've been a great help!!

have a great day!
 

Users who are viewing this thread

Back
Top Bottom