Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Me.Name results in "Invalid procedure call or argument"

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  the setting for this property is too long  
Author Message
comcraft1966

External


Since: Nov 26, 2008
Posts: 4



(Msg. 1) Posted: Wed Nov 26, 2008 3:17 am
Post subject: Me.Name results in "Invalid procedure call or argument"
Archived from groups: microsoft>public>access (more info?)

I am debugging an Access application written by someone else. In
Access 2003 it behaves OK, but the client needs to upgrade to Access
2007 for various reasons. When the app is run in Access 2007 I get a
few niggles that I have been working through, but this one has really
got me stumped....

A subform of a subform (I'll call it subform2) will not display any
records. On further investigation I noticed the following line of code
was producing the following error

Me.RecordSource = strSQL
Results in Error 2467 The expression you entered refers to an object
that is closed or doesn't exist.

This line of code runs from the Oncurrent event of subform2. In the
same event whilst debugging I noticed the following:

Me.Name
Results in Error 5 Invalid procedure call or argument

That's the one that really got me!

What I have done so far (The problem could be reproduced after each
change listed below):
Converted the mdb to an accdb file
Imported all objects in to a new accdb file
Decompiled/recompiled (a thousand times)
Tried SaveAsText on all forms
Matched all references in the accdb to those in the original mdb .
This included adding the "microsoft forms 2.0 object library" and
"Microsoft windows common controls" back in, even though the accdb did
not require them to compile.

I'm stuck help!

Paul

 >> Stay informed about: Me.Name results in ""Invalid procedure call or argument"" 
Back to top
Login to vote
comcraft1966

External


Since: Nov 26, 2008
Posts: 4



(Msg. 2) Posted: Wed Nov 26, 2008 8:17 am
Post subject: Re: Me.Name results in "Invalid procedure call or argument"
Archived from groups: per prev. post (more info?)

On Nov 26, 12:25 pm, "Brendan Reynolds"
wrote:
> wrote in message
>

>
> > This line of code runs from the Oncurrent event of subform2. In the
> > same event whilst debugging I noticed the following:
>
> > Me.Name
> > Results in Error 5 Invalid procedure call or argument
>
> Just Me.Name on it's own, or is it something = Me.Name, or Me.Name =
> something?
>
> Is there a field in the form's recordsource, a control on the form, or a
> procedure, called Name? That could well cause a problem, as Name is a
> reserved word and should not be used as an identifier.
>
> --
> Brendan Reynolds

Just "debug.print Me.Name". There are no reserved words used anywhere.

Paul

 >> Stay informed about: Me.Name results in ""Invalid procedure call or argument"" 
Back to top
Login to vote
comcraft1966

External


Since: Nov 26, 2008
Posts: 4



(Msg. 3) Posted: Wed Nov 26, 2008 8:33 am
Post subject: Re: Me.Name results in "Invalid procedure call or argument"
Archived from groups: per prev. post (more info?)

On 26 Nov, 16:17, comcraft1....Del DeleteThis @googlemail.com wrote:
> On Nov 26, 12:25 pm, "Brendan Reynolds"
>
>
>
> wrote:
> > wrote in message
>
>
>
> > > This line of code runs from the Oncurrent event of subform2. In the
> > > same event whilst debugging I noticed the following:
>
> > > Me.Name
> > > Results in Error 5 Invalid procedure call or argument
>
> > Just Me.Name on it's own, or is it something = Me.Name, or Me.Name =
> > something?
>
> > Is there a field in the form's recordsource, a control on the form, or a
> > procedure, called Name? That could well cause a problem, as Name is a
> > reserved word and should not be used as an identifier.
>
> > --
> > Brendan Reynolds
>
> Just "debug.print Me.Name". There are no reserved words used anywhere.
>
> Paul

Just to reiterate, this works fine in Access 2003.
 >> Stay informed about: Me.Name results in ""Invalid procedure call or argument"" 
Back to top
Login to vote
Brendan Reynolds

External


Since: Nov 26, 2008
Posts: 7



(Msg. 4) Posted: Wed Nov 26, 2008 12:25 pm
Post subject: Re: Me.Name results in "Invalid procedure call or argument"
Archived from groups: per prev. post (more info?)

wrote in message


> This line of code runs from the Oncurrent event of subform2. In the
> same event whilst debugging I noticed the following:
>
> Me.Name
> Results in Error 5 Invalid procedure call or argument

Just Me.Name on it's own, or is it something = Me.Name, or Me.Name =
something?

Is there a field in the form's recordsource, a control on the form, or a
procedure, called Name? That could well cause a problem, as Name is a
reserved word and should not be used as an identifier.
 >> Stay informed about: Me.Name results in ""Invalid procedure call or argument"" 
Back to top
Login to vote
comcraft1966

External


Since: Nov 26, 2008
Posts: 4



(Msg. 5) Posted: Thu Nov 27, 2008 4:17 am
Post subject: Re: Me.Name results in "Invalid procedure call or argument"
Archived from groups: per prev. post (more info?)

On 26 Nov, 16:33, comcraft1....Del DeleteThis @googlemail.com wrote:
> On 26 Nov, 16:17, comcraft1....Del DeleteThis @googlemail.com wrote:
>
>
>
> > On Nov 26, 12:25 pm, "Brendan Reynolds"
>
> > wrote:
> > > wrote in message
>
> >
>
> > > > This line of code runs from the Oncurrent event of subform2. In the
> > > > same event whilst debugging I noticed the following:
>
> > > > Me.Name
> > > > Results in Error 5 Invalid procedure call or argument
>
> > > Just Me.Name on it's own, or is it something = Me.Name, or Me.Name =
> > > something?
>
> > > Is there a field in the form's recordsource, a control on the form, or a
> > > procedure, called Name? That could well cause a problem, as Name is a
> > > reserved word and should not be used as an identifier.
>
> > > --
> > > Brendan Reynolds
>
> > Just "debug.print Me.Name". There are no reserved words used anywhere.
>
> > Paul
>
> Just to reiterate, this works fine in Access 2003.

Does anyone have any ideas? This looks like an Access 2007 specific
problem.

Paul
 >> Stay informed about: Me.Name results in ""Invalid procedure call or argument"" 
Back to top
Login to vote
Clifford Bass

External


Since: Dec 17, 2008
Posts: 18



(Msg. 6) Posted: Wed Dec 17, 2008 1:57 pm
Post subject: Re: Me.Name results in "Invalid procedure call or argument"
Archived from groups: per prev. post (more info?)

Hi Paul,

Is it really "debug.print", all lower case? Then the error is probably
in finding "Debug.Print". Any "debug" objects defined anywhere? Or, there
is a possibility that there is some non-printing character mixed into that
line. Probably none of your efforts would get rid of it. How about deleting
the entire line and retyping it? Of course, you could just get rid of the
line altogether.

Clifford Bass

"comcraft1966.Del@googlemail.com" wrote:

> > Just to reiterate, this works fine in Access 2003.
>
> Does anyone have any ideas? This looks like an Access 2007 specific
> problem.
>
> Paul
 >> Stay informed about: Me.Name results in ""Invalid procedure call or argument"" 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Invalid procedure call or arguement - I have two fields of interest of a form: 1. NoProblemPresent (Yes/No) 2. Problem Description (drop down) I want 'Problem description to default to 'N/A' if 'NoProblemPresent' is checked. Here is what i did: 1. Create a drop down box for 'Problem..

invalid argument during import wizard - I have split my database and am trying to perform an import and save specs in the frontend of the database, but I get an error "invalid argument" most if not all of the data seems to be imported, but does not complete cleanly. When I try t...

Error 2455 (invalid reference) - I have an app that is being used by 8 people. Only one of the users sometimes gets the following error message, which happens randomly and can not be forced: "Error 2455 The expression contains an invalid reference to the property Form/Report&qu...

Receiving message "pattern string invalid" when searching .. - Does anybody know how to fix this? When searching fields I am recieving this message after I enter 2 letters.

Microsoft Office - Can you update Microsoft office version 2003 to 2007 or do you have to buy the newer version
   Windows Help (Home) -> Microsoft Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]