Only getting id from combo boxes (1 Viewer)

wgma

Registered User.
Local time
Today, 11:27
Joined
Nov 19, 2007
Messages
72
I have a form that has a combo box called Shipper. There are 3 columns in the combo box, ShipperID, ShipperName, ShipperAddress. When a user selects an item in the dropdown then there is a textbox below that gets the address filled in from on the combo box.

I have created a report based on the same table that the form is based on. When the report is displayed all I get in the section for the shipper is the ShipperID. How can I get the ShipperName and ShipperAddress to populate that area instead?

Thanks.
 

khawar

AWF VIP
Local time
Today, 20:27
Joined
Oct 28, 2006
Messages
870
Base your report on a query and incude shipper from shippers table using inner join
 

wgma

Registered User.
Local time
Today, 11:27
Joined
Nov 19, 2007
Messages
72
That works great. I need to combine 2 fields, shippers name and shippers address, but when I do I need to have a line feed after the shippers name so that the address starts below the name.

How so I do that?

Thanks for your help.
 

khawar

AWF VIP
Local time
Today, 20:27
Joined
Oct 28, 2006
Messages
870
you can use [shippername] & "-" & [shipperaddress] in the query column
 

boblarson

Smeghead
Local time
Today, 09:27
Joined
Jan 12, 2001
Messages
32,059
That works great. I need to combine 2 fields, shippers name and shippers address, but when I do I need to have a line feed after the shippers name so that the address starts below the name.

How so I do that?

Thanks for your help.

Actually, you would do
[ShipperName] & Chr(13) & Chr(10) & [ShipperAddress]
 

khawar

AWF VIP
Local time
Today, 20:27
Joined
Oct 28, 2006
Messages
870
Boblarson's solution is exactly according to your requirement
 

Users who are viewing this thread

Top Bottom