473,398 Members | 2,812 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,398 software developers and data experts.

Method or data member not found--but it's there!

lwwhite
16
This is driving me crazy and probably has a simple solution. Access 2003 Win XP. On a form, I have an unbound text box named "drive." I have an unbound combo box called "version" that looks up values in a table. I have a button that calls a shell statement that concatenates the values in these fields plus some other fields and some hardcoded text to create a complete path to a document to open in in FrameMaker. This is working perfectly on several other forms in my database. On this particular form, I get the "Method or data member not found" message for both drive and version, as if those controls were not on the form or were there by some other name, but I have checked and double-checked and those are the correct control names. When I'm in the VB editor and type "Me.", the dropdown includes those control names for selection.

I tried re-adding the unbound controls, letting Access assign a default name and using those names in my shell statement instead, but still no go. I've repaired the database and everything else I can think of.

Any clue why I am getting this message and what I can do to fix it? Here's my shell statement:

Shell "C:\Program Files\Adobe\FrameMaker7.1\FrameMaker.exe " & Me.drive & ":\Sourcedocs\EMRSuite\" & Me.version & "\" & Me.path & Me.sourcedoc, vbNormalFocus
Dec 6 '06 #1
1 6085
NeoPa
32,556 Expert Mod 16PB
Try putting in your code before your Shell() code :
Expand|Select|Wrap|Line Numbers
  1. Dim strTest As String
  2. strTest = "C:\Program Files\Adobe\FrameMaker7.1\FrameMaker.exe " & Me.drive & ":\Sourcedocs\EMRSuite\" & Me.version & "\" & Me.path & Me.sourcedoc
  3. Debug.Print strTest
and see what is displayed in the debug window (Ctrl-G from the VBA window).
Dec 7 '06 #2

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

Similar topics

5
by: CoolPint | last post by:
It seems to me that I cannot assign objects of a class which has a constant data member since the data member cannot be changed once the constructor calls are completed. Is this the way it is meant...
1
by: roni | last post by:
my target is to create objects only as data member of class. (but offcourse i can pass the objects reference to other objects) my question: how can i make sure that my object is create as data...
3
by: marcus | last post by:
I have a class which has one static data member. The .h file containing this class is included from many cpp files. Therefor I have the definition part of the data member in the implementation of...
8
by: Scott J. McCaughrin | last post by:
The following program compiles fine but elicits this message from the linker: "undefined reference to VarArray::funct" and thus fails. It seems to behave as if the static data-member:...
3
by: Richard Webb | last post by:
Hi all, I guess this is more of a design problem than a language problem, but I'm confused either way! I have a class and it has a private data member which is a struct. The size of the struct is...
6
by: blueblueblue2005 | last post by:
here is a friend function of Class Array, which has two private data member: int size, int *ptr // Array's public member function to return size int getSize() const { return size; } friend...
1
by: mangalalei | last post by:
A static data member can be of the same class type as that of which it is a member. A nonstatic data member is restricted to being declared as a pointer or a reference to an object of its class. ...
2
by: tat | last post by:
Dear C++ experts, I have a piece of code (see below). Alignment object has a data member that is a vector of Sequence objects. Sequence object, in turn, has a data member that is a vector of...
4
by: subramanian100in | last post by:
Consider the following: Class Test { public: Test(Test_int arg) : val(arg) { } typedef int Test_int; private:
15
by: akomiakov | last post by:
Is there a technical reason why one can't initialize a cost static non- integral data member in a class?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...
0
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...

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.