A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form/Subform Visual Basic Error?



 
 
Thread Tools Display Modes
  #1  
Old September 29th, 2004, 04:15 PM
JDA
external usenet poster
 
Posts: n/a
Default Form/Subform Visual Basic Error?

Hi,

I have created a form/subform with the form wizard - the form being a date
and train, and the subform being a log of delay events for that train (a
one-many relationship). When I try to add an event in the subform, access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly references a
property or method of an object.

I click the OK button and continue to enter data, and the records are
entered and related properly...this doesn't happen when I go to the table and
enter the delays there - any thoughts?

Thanks in advance,

JDA



  #2  
Old September 29th, 2004, 04:23 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which case you
could probably rescue the database by following the 6 steps for the first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form being a date
and train, and the subform being a log of delay events for that train (a
one-many relationship). When I try to add an event in the subform, access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly references a
property or method of an object.

I click the OK button and continue to enter data, and the records are
entered and related properly...this doesn't happen when I go to the table
and
enter the delays there - any thoughts?



  #3  
Old September 29th, 2004, 04:49 PM
JDA
external usenet poster
 
Posts: n/a
Default

When I press Ctrl+G, my immediate window only shows a blank "immediate"
window...I cannot find any modules to open...do I need administrator rights
on my machine to do this? I do have the database open in exclusive mode.
JDA

"Allen Browne" wrote:

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which case you
could probably rescue the database by following the 6 steps for the first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form being a date
and train, and the subform being a log of delay events for that train (a
one-many relationship). When I try to add an event in the subform, access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly references a
property or method of an object.

I click the OK button and continue to enter data, and the records are
entered and related properly...this doesn't happen when I go to the table
and
enter the delays there - any thoughts?




  #4  
Old September 29th, 2004, 05:07 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

When you have the Immediate window open, are you able to get to the menus?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
When I press Ctrl+G, my immediate window only shows a blank "immediate"
window...I cannot find any modules to open...do I need administrator
rights
on my machine to do this? I do have the database open in exclusive mode.
JDA

"Allen Browne" wrote:

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which case
you
could probably rescue the database by following the 6 steps for the first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html


"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form being a
date
and train, and the subform being a log of delay events for that train
(a
one-many relationship). When I try to add an event in the subform,
access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly references a
property or method of an object.

I click the OK button and continue to enter data, and the records are
entered and related properly...this doesn't happen when I go to the
table
and
enter the delays there - any thoughts?



  #5  
Old September 29th, 2004, 05:19 PM
JDA
external usenet poster
 
Posts: n/a
Default

I can see the menus, and I can see my DB in the project window - the compile
(and most other) option is greyed out...there are no modules in the DB...?

"Allen Browne" wrote:

When you have the Immediate window open, are you able to get to the menus?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
When I press Ctrl+G, my immediate window only shows a blank "immediate"
window...I cannot find any modules to open...do I need administrator
rights
on my machine to do this? I do have the database open in exclusive mode.
JDA

"Allen Browne" wrote:

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which case
you
could probably rescue the database by following the 6 steps for the first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html


"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form being a
date
and train, and the subform being a log of delay events for that train
(a
one-many relationship). When I try to add an event in the subform,
access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly references a
property or method of an object.

I click the OK button and continue to enter data, and the records are
entered and related properly...this doesn't happen when I go to the
table
and
enter the delays there - any thoughts?




  #6  
Old September 29th, 2004, 05:36 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

What references do you have?

Have you disabled Name AutoCorrect and compacted?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
I can see the menus, and I can see my DB in the project window - the
compile
(and most other) option is greyed out...there are no modules in the DB...?

"Allen Browne" wrote:

When you have the Immediate window open, are you able to get to the
menus?


"JDA" wrote in message
...
When I press Ctrl+G, my immediate window only shows a blank "immediate"
window...I cannot find any modules to open...do I need administrator
rights
on my machine to do this? I do have the database open in exclusive
mode.
JDA

"Allen Browne" wrote:

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a
problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which case
you
could probably rescue the database by following the 6 steps for the
first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html


"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form being
a
date
and train, and the subform being a log of delay events for that
train
(a
one-many relationship). When I try to add an event in the subform,
access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly references
a
property or method of an object.

I click the OK button and continue to enter data, and the records
are
entered and related properly...this doesn't happen when I go to the
table
and
enter the delays there - any thoughts?



  #7  
Old September 29th, 2004, 05:53 PM
JDA
external usenet poster
 
Posts: n/a
Default

Visual Basic for Applications
MS 9.0 Object Library
OLE Automation
MS Active X Data Objects 2.1 Lib
MS DAO 3.6 Object Lib

I have run the Compact & Repair, and I have turned off AutoCorrect....?




"Allen Browne" wrote:

What references do you have?

Have you disabled Name AutoCorrect and compacted?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
I can see the menus, and I can see my DB in the project window - the
compile
(and most other) option is greyed out...there are no modules in the DB...?

"Allen Browne" wrote:

When you have the Immediate window open, are you able to get to the
menus?


"JDA" wrote in message
...
When I press Ctrl+G, my immediate window only shows a blank "immediate"
window...I cannot find any modules to open...do I need administrator
rights
on my machine to do this? I do have the database open in exclusive
mode.
JDA

"Allen Browne" wrote:

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a
problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which case
you
could probably rescue the database by following the 6 steps for the
first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html


"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form being
a
date
and train, and the subform being a log of delay events for that
train
(a
one-many relationship). When I try to add an event in the subform,
access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly references
a
property or method of an object.

I click the OK button and continue to enter data, and the records
are
entered and related properly...this doesn't happen when I go to the
table
and
enter the delays there - any thoughts?




  #8  
Old September 29th, 2004, 06:08 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Okay: no code. Standard libraries. Compact/repair doesn't work.

Try creating a new (blank) database:
File | New
If the problem occurs there also, then you need to reinstall Office/Access.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
Visual Basic for Applications
MS 9.0 Object Library
OLE Automation
MS Active X Data Objects 2.1 Lib
MS DAO 3.6 Object Lib

I have run the Compact & Repair, and I have turned off AutoCorrect....?




"Allen Browne" wrote:

What references do you have?

Have you disabled Name AutoCorrect and compacted?


"JDA" wrote in message
...
I can see the menus, and I can see my DB in the project window - the
compile
(and most other) option is greyed out...there are no modules in the
DB...?

"Allen Browne" wrote:

When you have the Immediate window open, are you able to get to the
menus?


"JDA" wrote in message
...
When I press Ctrl+G, my immediate window only shows a blank
"immediate"
window...I cannot find any modules to open...do I need administrator
rights
on my machine to do this? I do have the database open in exclusive
mode.
JDA

"Allen Browne" wrote:

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a
problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which
case
you
could probably rescue the database by following the 6 steps for the
first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html


"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form
being
a
date
and train, and the subform being a log of delay events for that
train
(a
one-many relationship). When I try to add an event in the
subform,
access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly
references
a
property or method of an object.

I click the OK button and continue to enter data, and the records
are
entered and related properly...this doesn't happen when I go to
the
table
and
enter the delays there - any thoughts?



  #9  
Old September 29th, 2004, 06:17 PM
JDA
external usenet poster
 
Posts: n/a
Default

Allen,

Thanks for the suggestions...I am going to try to start over, but I think
there's something cooking "uner the hood" - we run a custom build XP where I
work, and I have more trouble with permissions...IT paranoia I guess.

Thanks again,

JDA


"Allen Browne" wrote:

Okay: no code. Standard libraries. Compact/repair doesn't work.

Try creating a new (blank) database:
File | New
If the problem occurs there also, then you need to reinstall Office/Access.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"JDA" wrote in message
...
Visual Basic for Applications
MS 9.0 Object Library
OLE Automation
MS Active X Data Objects 2.1 Lib
MS DAO 3.6 Object Lib

I have run the Compact & Repair, and I have turned off AutoCorrect....?




"Allen Browne" wrote:

What references do you have?

Have you disabled Name AutoCorrect and compacted?


"JDA" wrote in message
...
I can see the menus, and I can see my DB in the project window - the
compile
(and most other) option is greyed out...there are no modules in the
DB...?

"Allen Browne" wrote:

When you have the Immediate window open, are you able to get to the
menus?


"JDA" wrote in message
...
When I press Ctrl+G, my immediate window only shows a blank
"immediate"
window...I cannot find any modules to open...do I need administrator
rights
on my machine to do this? I do have the database open in exclusive
mode.
JDA

"Allen Browne" wrote:

Press Ctrl+G to open the Immediate Window.
Choose Compile from the Debug menu.
Does this take you to a particular line of code where there is a
problem?

If it does not, you may have a problem with References:
http://members.iinet.net.au/~allenbrowne/ser-38.html
or you may have a corruption caused by Name AutoCorrect, in which
case
you
could probably rescue the database by following the 6 steps for the
first
symptom in this article:
http://members.iinet.net.au/~allenbrowne/ser-47.html


"JDA" wrote in message
...
Hi,

I have created a form/subform with the form wizard - the form
being
a
date
and train, and the subform being a log of delay events for that
train
(a
one-many relationship). When I try to add an event in the
subform,
access
returns the following error:

An Error Occured while referencing the object
you tried to run a visual basic procedure that improperly
references
a
property or method of an object.

I click the OK button and continue to enter data, and the records
are
entered and related properly...this doesn't happen when I go to
the
table
and
enter the delays there - any thoughts?




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual basic error when opening Shaun Setting up and Configuration 1 June 30th, 2004 02:35 AM
Microsoft Visual Basic Run-time Error 5 Miss Dee Cee General Discussion 2 May 18th, 2004 02:44 PM
Excel Visual Basic Error Message at Start Up N Walker Setting up and Configuration 0 October 1st, 2003 01:12 AM


All times are GMT +1. The time now is 10:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.