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

Access cannot find object "*"

101 100+
I have created a navigation form "frmNavigation" to use as a menu for a dbase. When I use it If I press one of the buttons I get the above error and then it opens the correct form. If I try to open the frmNavigation in design view I also get the same error and then it opens in design view?

I have tried taking out all events and macros and the form is now empty of any commands (only the design info remanis). Even so, if I press a button I get the same error.

It does not happen on all buttons, just 2?

Can anyone help here?
Oct 16 '11 #1

✓ answered by NeoPa

NeoPa:
If you have no VBA code then you certainly have at least one control connected to either SQL code or a QueryDef. Please post the SQL of that.
You will find a control somewhere on your form, a ListBox or ComboBox control, which is populated by some SQL. Look in the Control Source property. Your problem is almost certainly to be found within that SQL (or QueryDef name).

BTW I expect you can create a blank db in 2003 form, even in 2010, then import the form into that new DB for posting in here.

16 5792
Stewart Ross
2,545 Expert Mod 2GB
Please post the VBA code for the relevant button's On Click events. Can't answer you without it.

-Stewart
Oct 16 '11 #2
Cyd44
101 100+
None of the buttons have any code behind them. I have simply created the form with no events behind any of the buttons as yet.

However, if I try to open the form in design view I get the error and if I open in form view and press buttons, I get an error on some and nothing on others
Oct 16 '11 #3
NeoPa
32,556 Expert Mod 16PB
If you have no VBA code then you certainly have at least one control connected to either SQL code or a QueryDef. Please post the SQL of that.

As Stewart says, if you don't tell us anything about your problem it'll be somewhat complicated to help you.
Oct 16 '11 #4
Cyd44
101 100+
I fully appreciate your attempts to help me and apologise on the fact that I am very new to access. The Form I have created simply has the buttons without any events entered the VB code behind the form is as follows:-

Option Compare Database


This is the only code visible as I have deleted all of the original events in order to get back to the basic proble. I know it is illogical and I have pulled my hair out looking for any residual code for this form but cannot find any. Why then should I get the error when either trying to open in design view or when pressing 2 of the empty buttons on form view????
Sorry if I appear to be thick but the logic here is beyond me as I am only opening a form to be used as a menu?
Oct 16 '11 #5
ADezii
8,834 Expert 8TB
Why not Upload the DB with only the Form present?
Oct 16 '11 #6
Cyd44
101 100+
Will try that Adezil. I will let you know
Oct 16 '11 #7
Cyd44
101 100+
Have export just the form to an empty database and am still getting the error
Oct 16 '11 #8
ADezii
8,834 Expert 8TB
@Cyd44:
I meant to Upload the Database with the Empty Form to this Site as an Attachment.
Oct 16 '11 #9
Cyd44
101 100+
Would love to but I don not have winzip on my system (only have jZip). This site will not let me upload jZip file.

The error is illogical as I have only got a blank form now and it still gives me an error on trying to open the design view. It does go to the view and will let me change views without error after the first time.

There is absolutely no code that I can see which could upset the system but it is obviously trying to look for some object or other.

I am using Access 2010, do you know of any bug in this version
Oct 16 '11 #10
Cyd44
101 100+
Will go on line and purchase winZip so that I can send you the dabase
Oct 16 '11 #11
Cyd44
101 100+
Here is the dbase, many thanks for having a look
Attached Files
File Type: zip Room Dbase WIP.zip (852.1 KB, 123 views)
Oct 16 '11 #12
ADezii
8,834 Expert 8TB
Sorry Cyd44, but I need it in an earlier Version, say 2003.
Oct 16 '11 #13
Cyd44
101 100+
I only have 2010 I am afraid, this is a new comuter
Oct 16 '11 #14
NeoPa
32,556 Expert Mod 16PB
NeoPa:
If you have no VBA code then you certainly have at least one control connected to either SQL code or a QueryDef. Please post the SQL of that.
You will find a control somewhere on your form, a ListBox or ComboBox control, which is populated by some SQL. Look in the Control Source property. Your problem is almost certainly to be found within that SQL (or QueryDef name).

BTW I expect you can create a blank db in 2003 form, even in 2010, then import the form into that new DB for posting in here.
Oct 17 '11 #15
Cyd44
101 100+
Thanks for trying guys. The error is a mistery. However, I have built a new form and populated this and it works fine.

Still at a loss about the old form though.

Thanks to everyone who has tried to help
Oct 17 '11 #16
NeoPa
32,556 Expert Mod 16PB
Never mind. At least you have a working solution :-)
Oct 17 '11 #17

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

Similar topics

3
by: aspmenu.net | last post by:
Hi, We have built a c# dot net web page that has an online regristraion. It uses a XML HTTPS POST to a payment gateway to do a credit card payment. It crashes every now and again with -...
5
by: D Witherspoon | last post by:
I use the following code to open up a form. ------------------------------------------------------- If fImage Is Nothing Then fImage = New frmImage End If fImage.Show()
0
by: Asaf | last post by:
Hi, When I am doing a POST to a SSL URL I am getting this error on first attempt "Cannot access a disposed object named "System.Net.TlsStream"." After the first attempt all works fine, here is the...
5
by: SMike | last post by:
I am getting the following error when sending a first http request: Cannot access a disposed object named "System.Net.TlsStream". After that everything sems to be fine untill the next long idle...
2
by: Asaf | last post by:
Hi All, When doing HTTP POST to SSL URL I am getting the error: Cannot access a disposed object named "System.Net.TlsStream". I have found this code in the internet but it does not solve the...
1
by: M O J O | last post by:
Hi, I'm using a thread to fill a listview and I get this error... 'Cannot access a disposed object named "ParkingWindow"' I use Invoke to fill the list and the above error ocours randomly. ...
0
by: Bob | last post by:
Just thought I'd share my experience today with this error message. I received it when doing an .update on a recordset .add. The fieldname that the error message included wasn't even in the table...
3
gcoaster
by: gcoaster | last post by:
Hello! I am having problem with DLookup Function DLookup looks on form, and finds the combobox = cboFullName and then compares it to the column clientID in tblCLIENTS table. if they match,...
2
by: Gilles Ganault | last post by:
Hello I'm trying to use urllib to download web pages with the GET method, but Python 2.5.1 on Windows turns the URL into something funny: ======== url = "amazon.fr/search/index.php?url=search"
11
by: dowlingm815 | last post by:
the following code is generating an error; Mircosoft Access cant find the field '|" referred to in your expression" any suggestions would be appreciated. Private Sub...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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:
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...
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.