Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / May 2008

Tip: Looking for answers? Try searching our database.

Concat not working with linked table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Debbiedo - 28 May 2008 17:54 GMT
I am trying to concatenate the first and last name fields into a
report.

For the Control Source in the properties box for the text box
"FullName" I put the following:

=[First_Name] & " " & [Last_Name]

If the Record Source for the report is a table existing in the current
database, the full name appears correctly in the report preview.

IF I make the Record Source a linked table in the current databse, I
get #Error in the report preview.

I tried using the query builder and it puts this info in it (the
"FormsData" is a linked table in the current databsae)

=[FormsData]!First_Name & " " & [FormsData]!Last_Name
but I still get #Error.

Any idea why I cannot use the concat feature with linked tables?

Both tables are identical, except for location. The linked table is
the one I will be using as it is a daily export of  SQL Server data
and shared on a network.

Thanks in advance

Deb
Duane Hookom - 28 May 2008 20:15 GMT
Are First_Name and Last_Name displayed in the field list of your report's
record source? Are there duplicates of these field names?

Did you try just
  =[First_Name]

Signature

Duane Hookom
Microsoft Access MVP

> I am trying to concatenate the first and last name fields into a
> report.
[quoted text clipped - 25 lines]
>
> Deb
Debbiedo - 28 May 2008 21:28 GMT
On May 28, 12:15 pm, Duane Hookom <duanehookom@NO_SPAMhotmail.com>
wrote:
> Are First_Name and Last_Name displayed in the field list of your report's
> record source? Are there duplicates of these field names?
[quoted text clipped - 37 lines]
>
> - Show quoted text -

I tried what you suggested and believe it does not work because the
table does not contain any data yet. I was only getting #Error on the
fields that I was doing calculations on (The concatination). Boxes
that just called up one field received no error messages. I assumed
that because some of my fields did not display #Error, that the
problem was not an empty table. I tested it with an empty table
located within the database and got the same error. I guess I can't
design concatination formulas on empty tables. Learn something new
everyday. Thanks for helping.

Deb
Duane Hookom - 28 May 2008 22:28 GMT
You can avoid the #error by either making sure your report always returns
records or changing your control sources to something like:
 =IIf([HasData], [FirstName] & " " & [LastName],Null)

Signature

Duane Hookom
Microsoft Access MVP

> On May 28, 12:15 pm, Duane Hookom <duanehookom@NO_SPAMhotmail.com>
> wrote:
[quoted text clipped - 51 lines]
>
> Deb
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.