473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why am I getting a #Name?

489 256MB
My reports have a =date() and =time() in the headings to show when the report was run. However on some computer when the report is run those fields show up with the #Name? I'm sure it has something to do with a reference being missing but which one?

Thanks
Jun 19 '19 #1

✓ answered by NeoPa

If you go to the VBA IDE window (Alt-F11 from Access window) then press F2 to display the Object Browser then you should see theObject Browser window.

Using Tools \ References you should see all the libraries for the project listed. The one at the very top should always be "Visual Basic For Applications" and will not be de-selectable. In the status box at the bottom of this pop-up is the name as well as Location & Language. You've probably already seen that many locations are too wide to be displayed fully except in the newer versions where this window is expandable. Can be frustrating.

However, if you close that and select VBA from the higher of the two ComboBoxes at the top-left of the Object Browser you'll see the same location displayed in the status box at the bottom of that window. As this window is fully resizable even in quite old versions, you should be able to see the full path of the file. If the window is too small then it wraps in the box and the box has a vertical scrollbar so all info is visible even if you have to scroll in some extreme circumstances. You can even copy and paste the information into somewhere it's easier to see, or even into Windows Explorer to navigate directly there. All very flexible and powerful.

An easy way to get to this is :
Ctrl-G Go to Immediate Pane.
Date Type it out.
Shift-F2 Press with cursor on name of Function.
VBA.DateTime Click on VBA in status box at bottom.

3 1091
NeoPa
32,556 Expert Mod 16PB
Hi Tom.

Date() and Time(), as well as Now(), all come from the VBA library. I'm pretty sure that this particular library is not optional and is available for all projects.

I can't think of a reason why it would show on some machines but not others - not unless the whole of VBA wasn't installed with Office, but that would be very unusual in my experience.
Jun 19 '19 #2
CD Tom
489 256MB
Where is the VBA Library? In my references I have Microsoft Visual Basic for Applications Extensibility 5.3, I also have Microsoft office 16.0 Access database engine Object Library. I'm wondering if this could be the problem as not everybody has Office 16.0. I can't tell what the file is because the file location only shows C:\program files (x86)\Microsoft Office\Root\VFS\programfile that's where it stops and I can't figure out how to show me the complete file location. Is this a .dll or .olb the individual that is having the problem I know for a fact that she doesn't have office 16.
Your help is always appreciated. I'm not to sure how clear I've been in this reply of if you need more information let me know.
Jun 19 '19 #3
NeoPa
32,556 Expert Mod 16PB
If you go to the VBA IDE window (Alt-F11 from Access window) then press F2 to display the Object Browser then you should see theObject Browser window.

Using Tools \ References you should see all the libraries for the project listed. The one at the very top should always be "Visual Basic For Applications" and will not be de-selectable. In the status box at the bottom of this pop-up is the name as well as Location & Language. You've probably already seen that many locations are too wide to be displayed fully except in the newer versions where this window is expandable. Can be frustrating.

However, if you close that and select VBA from the higher of the two ComboBoxes at the top-left of the Object Browser you'll see the same location displayed in the status box at the bottom of that window. As this window is fully resizable even in quite old versions, you should be able to see the full path of the file. If the window is too small then it wraps in the box and the box has a vertical scrollbar so all info is visible even if you have to scroll in some extreme circumstances. You can even copy and paste the information into somewhere it's easier to see, or even into Windows Explorer to navigate directly there. All very flexible and powerful.

An easy way to get to this is :
Ctrl-G Go to Immediate Pane.
Date Type it out.
Shift-F2 Press with cursor on name of Function.
VBA.DateTime Click on VBA in status box at bottom.
Jun 20 '19 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ChronoFish | last post by:
Hello, We are using MySQL 5.0+ because it now supports views. However it appears that the PHP's(4.3) mysql_field_table() is returning a temporary name table name rather than the actual table...
3
by: titusjava | last post by:
Hello I would like to know, is any easy way to getname of the XML tag and value of the XML tag inside a <xsl:foreach> loop. Thanks in advance Titus
6
by: Martin | last post by:
I'd like to be able to get the name of an object instance from within a call to a method of that same object. Is this at all possible? The example below works by passing in the name of the object...
2
by: Dan | last post by:
I'm implementing a tracing class with a WriteLine method, and would like to record the name of the function which is calling WriteLine. Is there a way to do this?
9
by: Brian Henry | last post by:
How do you go about getting the "type" of a file from explorer? Say if I want to know what the type for the extension .DOC was, which is "Micrsoft Word Document" in explorer, how would I do this? I...
5
by: Michael D. Ober | last post by:
Is there a way in VB 6 (and VB 2005) to get the instance name from a class. For example class MyClass 'some methods and properties public property get VarName() as string VarName =...
0
by: mydahlia | last post by:
abstract class A { static function i_want_my_childs_name() { echo __CLASS__; } } class B extends A { } B::i_want_my_childs_name();
11
by: BASSPU03 | last post by:
Tomorrow's my final presentation of my DB and I ran into an unexpected problem: I access a main form called frmViewAllResources with several tabbed subforms through my switchboard. There's a preview...
1
by: Sarvananda | last post by:
How can one get the name of the currently selected page in a tab control in VBA access 2003? Thanks in advance for kind replies..
1
by: faizaladams | last post by:
I am working in linux C, I am trying to write structure to a file. #include <stdio.h> #include <stdlib.h> #include <string.h> struct stud{
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.