473,405 Members | 2,310 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,405 software developers and data experts.

Can't Use OnCurrent Event / Can't Find Macro

I have run into a sudden problem and thought I'd see if anyone else has
ran into this.

Out of nowhere (sort-of) I am not able to access the OnCurrent event on
a subform. I, of course, can write code for the event, but [Event
Procedure] under OnCurrent does not show up on the properties of the
subform, and the event does not fire.

When this problem happened, it seems to have also generated an error
while changing records in the Main Form. The error is "...can't find
the macro ".". At least I think their related...both started at the
same time.

I have never used a macro in my life.

When I say "sort-of" above, the only thing I can think that I may have
done is this: When quickly "ALT-TAB'ing" between my form and the VB
editor, I *think* I accidently deleted the words [Event Procedure] out
of the said OnCurrent event. Although, I'm quite sure I have done this
in the past, and was able to just re-initiate the event, and move on.

Now, when I try to re-initiate the event (by clicking the "..." symbol
next to the event) it brings up the EXPRESSION BUILDER! Not the Choose
Builder request like it should.

I have tried everything short of re-creating the form completely
(compact/repair, export form - c/r
- import form, ext...)

Anybody ever see this?

Nov 10 '06 #1
2 3414
You should be able to just type in [Event Procedure] in the event slot and it
will begin working.

Rational Repairs wrote:
>I have run into a sudden problem and thought I'd see if anyone else has
ran into this.

Out of nowhere (sort-of) I am not able to access the OnCurrent event on
a subform. I, of course, can write code for the event, but [Event
Procedure] under OnCurrent does not show up on the properties of the
subform, and the event does not fire.

When this problem happened, it seems to have also generated an error
while changing records in the Main Form. The error is "...can't find
the macro ".". At least I think their related...both started at the
same time.

I have never used a macro in my life.

When I say "sort-of" above, the only thing I can think that I may have
done is this: When quickly "ALT-TAB'ing" between my form and the VB
editor, I *think* I accidently deleted the words [Event Procedure] out
of the said OnCurrent event. Although, I'm quite sure I have done this
in the past, and was able to just re-initiate the event, and move on.

Now, when I try to re-initiate the event (by clicking the "..." symbol
next to the event) it brings up the EXPRESSION BUILDER! Not the Choose
Builder request like it should.

I have tried everything short of re-creating the form completely
(compact/repair, export form - c/r
- import form, ext...)

Anybody ever see this?
--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 10 '06 #2
Damn, I wish I would have tried that. I ended up recreating the
sub-form (via copy/paste), and that fixed the problem. Thanks for the
tip though!

Jeff Smeker

On Nov 10, 9:38 am, "ruralguy via AccessMonster.com" <u12102@uwe>
wrote:
You should be able to just type in [Event Procedure] in the event slot and it
will begin working.

Rational Repairs wrote:
I have run into a sudden problem and thought I'd see if anyone else has
ran into this.
Out of nowhere (sort-of) I am not able to access the OnCurrent event on
a subform. I, of course, can write code for the event, but [Event
Procedure] under OnCurrent does not show up on the properties of the
subform, and the event does not fire.
When this problem happened, it seems to have also generated an error
while changing records in the Main Form. The error is "...can't find
the macro ".". At least I think their related...both started at the
same time.
I have never used a macro in my life.
When I say "sort-of" above, the only thing I can think that I may have
done is this: When quickly "ALT-TAB'ing" between my form and the VB
editor, I *think* I accidently deleted the words [Event Procedure] out
of the said OnCurrent event. Although, I'm quite sure I have done this
in the past, and was able to just re-initiate the event, and move on.
Now, when I try to re-initiate the event (by clicking the "..." symbol
next to the event) it brings up the EXPRESSION BUILDER! Not the Choose
Builder request like it should.
I have tried everything short of re-creating the form completely
(compact/repair, export form - c/r
- import form, ext...)
Anybody ever see this?--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/2006...- Hide quoted text -- Show quoted text -
Nov 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Marshall | last post by:
In A2003, I have a bound continuous form (OK, actually a sub form of an unbound main form, but I don't think that matters here). The record source consists of an Jet SQL statement that returns one...
2
by: Mark | last post by:
I have added some VBA code to a form's OnCurrent event, intending to retrieve information about the record that I am scrolling _to_. Instead, this code is retrieving information about the record...
8
by: Zheng Da | last post by:
I wrote a simple one as follow: typedef struct __myjmp_buf { int efp; int epc; }myjmp_buf; int mysetjmp(myjmp_buf env) {
6
by: Efim | last post by:
Hi all, Due to performance issue, I want to pevent execution of ToString() function in the code like the following: if(reporting_level & DEBUG_LEVEL) log(reporting_level,string.Format("Event of...
6
by: wimvan | last post by:
Hi, I'm a nerd in javascript, but, after trying and retrying I'm addressing me to help. I have a page with three frames, a top-, a left- and a right-frame. a kind a title-frmae, a button-frame...
1
by: Vincent | last post by:
I keep receiving the above error message in Microsoft Access when I attempt to click on one of the text boxes on my form. I have done some searching and came across a couple of posts that stated...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
2
by: airdata | last post by:
Hi I currently have the following code attached to a command button on a switchboard form. This is basic Access 2000. Private Sub Print_daily_reports_button_Click() On Error GoTo NoData...
5
by: TomK | last post by:
I would like to use the oncurrent event of a subform. The subform class seems to offer onEnter and onExit only, so I tried up to set the event handling routine programatically. It works fine with a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.