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 Jun 5, 2002 | 02:12 PM
  #1  
MattN's Avatar
MattN
Thread Starter
Scooby Regular
 
Joined: Nov 2000
Posts: 2,174
Likes: 0
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???
Reply
Old Jun 5, 2002 | 02:27 PM
  #2  
ChrisB's Avatar
ChrisB
Moderator
 
Joined: Dec 1998
Posts: 23,573
Likes: 0
From: Staffs
Post

What version of Access?

From a code window, click Tools > References.

Anything marked as "MISSING" in the list?
Reply
Old Jun 5, 2002 | 04:56 PM
  #3  
MattN's Avatar
MattN
Thread Starter
Scooby Regular
 
Joined: Nov 2000
Posts: 2,174
Likes: 0
Post

2000.

nothing jumps out at me.
Reply
Old Jun 5, 2002 | 05:15 PM
  #4  
Martingb's Avatar
Martingb
Scooby Regular
 
Joined: Oct 2001
Posts: 65
Likes: 0
Post

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

Martin.
Reply
Old Jun 5, 2002 | 05:30 PM
  #5  
MattN's Avatar
MattN
Thread Starter
Scooby Regular
 
Joined: Nov 2000
Posts: 2,174
Likes: 0
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.

Reply
Old Jun 6, 2002 | 08:28 AM
  #6  
Martingb's Avatar
Martingb
Scooby Regular
 
Joined: Oct 2001
Posts: 65
Likes: 0
Post

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

Martin.
Reply
Old Jun 6, 2002 | 12:29 PM
  #7  
MattN's Avatar
MattN
Thread Starter
Scooby Regular
 
Joined: Nov 2000
Posts: 2,174
Likes: 0
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!
Reply
Old Jun 6, 2002 | 05:25 PM
  #8  
MattN's Avatar
MattN
Thread Starter
Scooby Regular
 
Joined: Nov 2000
Posts: 2,174
Likes: 0
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.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
Jul 2, 2023 01:54 PM
TylerD529
General Technical
2
Oct 9, 2015 01:53 AM
Littleted
Computer & Technology Related
4
Sep 25, 2015 09:55 PM
Hangarrat93
Insurance
11
Sep 25, 2015 08:42 AM
farmerwrx
Computer & Technology Related
14
Sep 10, 2015 11:59 AM




All times are GMT +1. The time now is 08:48 AM.