473,976 Members | 1,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Concatenation Error in Access 2000 report

I created an access journal entry program many years ago. It works
for all and was working for an individual until recently. The report
shows ?Name! for every instance it repeats in the report. The field
in the report is a text box: named Text12. Bad coding I know. The
concat goes like this...

=Str([ToCompany]) & "-" & [AcctUnit] & "-" & [Account] & "-" &
[SubAcct]

ToCompany is a number. Like I said it works for all others but one
person. I wonder if there is a PC dll issue. I would love any help
you can provide.

Chris
Nov 13 '05 #1
3 4114
On 1 Jul 2004 07:45:06 -0700, MT 2MB wrote:
I created an access journal entry program many years ago. It works
for all and was working for an individual until recently. The report
shows ?Name! for every instance it repeats in the report. The field
in the report is a text box: named Text12. Bad coding I know. The
concat goes like this...

=Str([ToCompany]) & "-" & [AcctUnit] & "-" & [Account] & "-" &
[SubAcct]

ToCompany is a number. Like I said it works for all others but one
person. I wonder if there is a PC dll issue. I would love any help
you can provide.

Chris


Chris,
Several possibilities.
1) The computer has a missing reference. *
See below...
2) You don't need to convert the number to a string Str() when
concatenating it.
Try:
=[ToCompany] & "-" & [AcctUnit] & etc.

3) I've found the the #Name error is usually due to Access not being
able to find a field (miss-spelling?) in the expression, i.e.
[ToCompany] instead of [To Company]. Check the spelling.

4) re: The field in the report is a text box: named Text12.
I hope you mean the control name in the report.

* To resolve a Missing reference:
Open any module in Design view (or click Ctrl + G).
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.

For even more information, see:
http://members.rogers.com/douglas.j....nceErrors.html

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
Can you verify that the underlying query hasn't changed? Sometimes, a
query "magically" changes, dropping one or more important fields (is
there such a thing as an unimportant field? Oh, yes, one named
"Text12" - just kidding :-)

Anyway, the general idea is to "walk backwards" until you trace the
problem.

Hope this helps.

cr******@usatod ay.com (MT 2MB) wrote in message news:<f0******* *************** ****@posting.go ogle.com>...
I created an access journal entry program many years ago. It works
for all and was working for an individual until recently. The report
shows ?Name! for every instance it repeats in the report. The field
in the report is a text box: named Text12. Bad coding I know. The
concat goes like this...

=Str([ToCompany]) & "-" & [AcctUnit] & "-" & [Account] & "-" &
[SubAcct]

ToCompany is a number. Like I said it works for all others but one
person. I wonder if there is a PC dll issue. I would love any help
you can provide.

Chris

Nov 13 '05 #3
My thinking would be:

Either

The function str(), not a function I'm vary familiar with, is perhaps
a function that is not in one of the reference libraries on that
person's machine.

To check this make sure that the reference libraries (and order) are
the same as one working person's machine. (in VB editor select
Tool-Reference Libraries)

Or

There is some data inconsistancy in the [ToCompany] field. Perhaps its
not a number or there is """ or "'" in the field which is confusing
the concatenation.

Does it work without including the str() function?

Mat N

cr******@usatod ay.com (MT 2MB) wrote in message news:<f0******* *************** ****@posting.go ogle.com>...
I created an access journal entry program many years ago. It works
for all and was working for an individual until recently. The report
shows ?Name! for every instance it repeats in the report. The field
in the report is a text box: named Text12. Bad coding I know. The
concat goes like this...

=Str([ToCompany]) & "-" & [AcctUnit] & "-" & [Account] & "-" &
[SubAcct]

ToCompany is a number. Like I said it works for all others but one
person. I wonder if there is a PC dll issue. I would love any help
you can provide.

Chris

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2715
by: Sharon | last post by:
I've had an Access 2000 app running successfully for many months on both Windows XP and Windows 2000. Recently when my Windows 2000 users call a particular report, they get first a dialog requesting a "Replace" parameter. If the user clicks OK, the report opens, but only displays #Error. When the user tries to close the report, he is next presented with the choice of halting the code in break mode or not. Regardless of his choice, the app...
3
3726
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what a spreadsheet might show, the column names will actually be dynamic, based on data from a SQL Server 2000 database. The row data will also come from the same database. So in this case, I will have a main report and a subreport. I've already tried...
11
3919
by: James P. | last post by:
Hello, I have a report with the Priority field is used as sort order and grouping. The problem is the data in this Priority field if sorted in ascending order is: High, Low, and Medium. How could I sort it as: Low, Medium, High? Any suggestion is greatly appreciated, James
2
2570
by: Rick Caborn | last post by:
I am having a problem with an Access 2000 report getting data from SQL Server 2000. Here are the specifications for it: RecordSource: a stored procedure (tested via query analyzer and working correctly - permissions properly set) InputParameters: just one - provided by a function call that is functioning properly When I run the report, it hits the Load event, runs the function to get
3
1828
by: New Guy | last post by:
Is it possible to use two different tables with the Report Design Wizard? My report requires data from two different tables and I can't figure out how to get the wizard to accept the second one. Also, my report uses a bunch of fields which I then rearrange so that they all fit on one page. However, Access thinks that the report is still three pages wide and includes two blank pages where the fields were when I added them to the report....
2
2033
by: collegekid | last post by:
Hi everyone, basically my problem is this: I am using an Access 2000 format. And--I have four subforms in my main form. (Purpose of this is to track projects.) So in my main form I enter the project name, one primary point person for it (1:N list from a separate table), other details, and a manually entered tracking number, which is the primary key. Now, I also need to put down the legal entities, business managers, financial...
5
8101
by: dexterb | last post by:
I cannot install any pdf writers on the machine. I need to print a MS access 2000 report to a pdf file so I can email this. I already have a PDF995 printer in my windows list of printers. All this needs to be done by VBA code.
1
2394
by: Gilberto | last post by:
pks00 Expert 280 Posts April 16th, 2007 01:08 PM Re: How to print MS Access 2000 report to PDF995 printer by VBA Code Sweet, your using pdf995, makes answering this question that much easier :)
4
1518
by: wiso2010 | last post by:
I wanted to find out if there was anyway that I could create a script that would tell me which printer in our print servers is not being used by anyone. I currently have a report from MS access 2000 with all the server names and Ip address and printQ. Please let me know how I can do this, I know there's a way but I'm not sure how to begin with this.
0
11404
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11566
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10903
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8454
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7601
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3756
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.