Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Microsoft ACCESS

Thread Tools
 
Search this Thread
 
Old 05 June 2002, 02:12 PM
  #1  
MattN
Scooby Regular
Thread Starter
 
MattN's Avatar
 
Join Date: Nov 2000
Posts: 2,174
Likes: 0
Received 0 Likes on 0 Posts
Post

I've got a bit of problem, I have never used Access and our company doesn't use it, or so I thought. Part of the company does use it and a database that has been working for years all of a sudden doesn't.

I have the following code:

Option Compare Database
Option Explicit

Private Sub New_Record_Click()
On Error GoTo Err_New_Record_Click


DoCmd.GoToRecord , , acNewRec

Exit_New_Record_Click:
Exit Sub

Err_New_Record_Click:
MsgBox Err.Description
Resume Exit_New_Record_Click

End Sub

Now I assume this should run an event when the new record button is clicked, but it doesn't on the line Private Sub New_Record_Click() it goes yellow and says module not found.

Whats going on???
Old 05 June 2002, 02:27 PM
  #2  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

What version of Access?

From a code window, click Tools > References.

Anything marked as "MISSING" in the list?
Old 05 June 2002, 04:56 PM
  #3  
MattN
Scooby Regular
Thread Starter
 
MattN's Avatar
 
Join Date: Nov 2000
Posts: 2,174
Likes: 0
Received 0 Likes on 0 Posts
Post

2000.

nothing jumps out at me.
Old 05 June 2002, 05:15 PM
  #4  
Martingb
Scooby Regular
 
Martingb's Avatar
 
Join Date: Oct 2001
Posts: 65
Likes: 0
Received 0 Likes on 0 Posts
Post

Try compacting and repairing the database under Tools > Database Utilities.

Martin.
Old 05 June 2002, 05:30 PM
  #5  
MattN
Scooby Regular
Thread Starter
 
MattN's Avatar
 
Join Date: Nov 2000
Posts: 2,174
Likes: 0
Received 0 Likes on 0 Posts
Post

nope no effect.

the fact there are no modules worries me slightly. Also, I tried creating a new macro of just one line, it still comes up with Module not found.

Old 06 June 2002, 08:28 AM
  #6  
Martingb
Scooby Regular
 
Martingb's Avatar
 
Join Date: Oct 2001
Posts: 65
Likes: 0
Received 0 Likes on 0 Posts
Post

If you have a backup of the database, restore it.

Martin.
Old 06 June 2002, 12:29 PM
  #7  
MattN
Scooby Regular
Thread Starter
 
MattN's Avatar
 
Join Date: Nov 2000
Posts: 2,174
Likes: 0
Received 0 Likes on 0 Posts
Post

cheers for the help guys, I found an old version which worked, I just imported the up to date tables.

I still can't see anything wrong with the original though. Microsoft for you.

And now the compact and repair doesn't work - more like crash and reboot!

Trending Topics

Old 06 June 2002, 05:25 PM
  #8  
MattN
Scooby Regular
Thread Starter
 
MattN's Avatar
 
Join Date: Nov 2000
Posts: 2,174
Likes: 0
Received 0 Likes on 0 Posts
Post

OH ****.

I've just deleted a table that I really didn't want to delete.

Please tell me I can recover it? And no this one wasn't backed up.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
TylerD529
General Technical
2
09 October 2015 01:53 AM
Littleted
Computer & Technology Related
4
25 September 2015 09:55 PM
Hangarrat93
Insurance
11
25 September 2015 08:42 AM
farmerwrx
Computer & Technology Related
14
10 September 2015 11:59 AM



Quick Reply: Microsoft ACCESS



All times are GMT +1. The time now is 05:24 AM.