473,386 Members | 1,801 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,386 software developers and data experts.

Method or data member not found

Hi Folks,

I have some old code that I tried to fire up this morning. I'm using
MS Access 2000 with the DAO 3.6 Object Library reference at its
highest priority.

When I try to compile I get the "Method or data member not found"
with the first "rstP" in the "MakeProject..." line below highlighted.
Changing the paramter to "rstP As DAO.Recordset" made no difference.

Function MakeProject(rstP As Recordset) As String
MakeProject = rstP("fProjectNumber") & " " & rstP.fProjectName
End Function

rstP!fProjectNumber, rstP.fProjectNumber, and rstP.Fields.fProject
all have the same or similar error.

Please help! I have no idea what's going on, and I hate these
Microsoft compatibility/reference problems.
--
% Randy Yates % "Watching all the days go by...
%% Fuquay-Varina, NC % Who are you and who am I?"
%%% 919-577-9882 % 'Mission (A World Record)',
%%%% <ya***@ieee.org % *A New World Record*, ELO
http://home.earthlink.net/~yatescr
Nov 3 '06 #1
1 3030
Randy Yates <ya***@ieee.orgwrites:
Hi Folks,

I have some old code that I tried to fire up this morning. I'm using
MS Access 2000 with the DAO 3.6 Object Library reference at its
highest priority.

When I try to compile I get the "Method or data member not found"
with the first "rstP" in the "MakeProject..." line below highlighted.
Changing the paramter to "rstP As DAO.Recordset" made no difference.

Function MakeProject(rstP As Recordset) As String
MakeProject = rstP("fProjectNumber") & " " & rstP.fProjectName
End Function

rstP!fProjectNumber, rstP.fProjectNumber, and rstP.Fields.fProject
all have the same or similar error.

Please help! I have no idea what's going on, and I hate these
Microsoft compatibility/reference problems.
Never mind - fixed it. I'm not even sure what the problem was, but
I did have to convert all "." references to recordset fields to
bangs.
--
% Randy Yates % "Rollin' and riding and slippin' and
%% Fuquay-Varina, NC % sliding, it's magic."
%%% 919-577-9882 %
%%%% <ya***@ieee.org % 'Living' Thing', *A New World Record*, ELO
http://home.earthlink.net/~yatescr
Nov 3 '06 #2

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

Similar topics

17
by: Medi Montaseri | last post by:
Hi, Given a collection of similar but not exact entities (or products) Toyota, Ford, Buick, etc; I am contemplating using the Abstraction pattern to provide a common interface to these products....
6
by: gustav04 | last post by:
hi all i have a question: what is the difference between a c-function and an c++ class method (both do exactly the same thing). lets say, i have a function called print2std() and a class...
0
by: Kenny G | last post by:
Hello, Got a small problem: I built a small table and used the following on my laptop this morning. This code compiled and worked fine on my laptop but when I compiled the first Sub on my...
2
by: bradleyp | last post by:
Hi all, Hopefully somebody can help. In Access 2002-SP2, I receive an error from the VB Editor if I try to compile the following code (see below). The error is as follows: Compile Error:...
5
by: kuvpatel | last post by:
Hi I want to refer a class called LogEvent, and use one of its methods called WriteMessage without actually having to create an instance of Logevent. I have tried using the word sealed with...
3
by: ineedahelp | last post by:
Can anyone help me with an error message i am receiving? I am trying with the code below to add a field to an existing table. My code doesn't even perform the debug. It jumps to the "fld.close"...
1
lwwhite
by: lwwhite | last post by:
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...
22
by: kkk1979 | last post by:
I am not an experienced programmer. I am getting an error as "method or data member not found" when i entered the following code in buttonclick procedure of the toolbar. select case button.key...
1
by: almeister9 | last post by:
I am hoping someone can help me as I've done this sort of thing before with no problems. I am using Access 2003 SP2 on WinXP prof SP2 I have an unbound form (single form view) with 18 unbound text...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...
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,...

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.