473,473 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

It won't work after converted from 97 to 2003

I have a simple databased developed on Access 97. Recently I converted it
to 2003 but not work on a parameter query. The program starts with a
opening form. When I press "Esc" key, it will open a form that connects to
a parameter query. The parameter query box appeared. Once I entered the
key words, it failed and display the following error.

Run-time error '2501':
The OpenForm action was canceled.

When click Debug button, it showed

Private Sub Form_KeyPress(KeyAscii As Integer)

If KeyAscii = 27 Then

DoCmd.Close acForm, "frmContributor", acSaveYes
DoCmd.OpenForm "frmTechInfo"
Else
Beep
End If

End Sub

The fourth line was highlighted in yellow. Can someone advise the possible
causes and fixes.

Thanks,

Scott

Aug 27 '06 #1
5 1912
On Sun, 27 Aug 2006 23:55:45 +0800, "Scott"
<No*************@GMail.comwrote:
Try reversing the two lines.
-Tom.
>I have a simple databased developed on Access 97. Recently I converted it
to 2003 but not work on a parameter query. The program starts with a
opening form. When I press "Esc" key, it will open a form that connects to
a parameter query. The parameter query box appeared. Once I entered the
key words, it failed and display the following error.

Run-time error '2501':
The OpenForm action was canceled.

When click Debug button, it showed

Private Sub Form_KeyPress(KeyAscii As Integer)

If KeyAscii = 27 Then

DoCmd.Close acForm, "frmContributor", acSaveYes
DoCmd.OpenForm "frmTechInfo"
Else
Beep
End If

End Sub

The fourth line was highlighted in yellow. Can someone advise the possible
causes and fixes.

Thanks,

Scott

Aug 27 '06 #2
"Scott" <No*************@GMail.comwrote in
news:4l************@individual.net:
I have a simple databased developed on Access 97. Recently I
converted it to 2003 but not work on a parameter query. The
program starts with a opening form. When I press "Esc" key,
it will open a form that connects to a parameter query. The
parameter query box appeared. Once I entered the key words,
it failed and display the following error.

Run-time error '2501':
The OpenForm action was canceled.

When click Debug button, it showed

Private Sub Form_KeyPress(KeyAscii As Integer)

If KeyAscii = 27 Then

DoCmd.Close acForm, "frmContributor", acSaveYes
DoCmd.OpenForm "frmTechInfo"
Else
Beep
End If

End Sub

The fourth line was highlighted in yellow. Can someone advise
the possible causes and fixes.

Thanks,

Scott
By foutrh line, I assume you mean DoCmd.OpenForm "frmTechInfo"
try to open frmtechinfo in design mode. find the recordsource
property of that form. It will be your parameter query.
Run the query by double-clicking it.

Does it run, or give you an error message?

Report back here.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Aug 27 '06 #3
Tom,

I tried to reverse the two lines. Both form boxes appeared on the same time
but the highlighted line moved to third line and the same issue happened.

Scott

"Tom van Stiphout" <no*************@cox.netwrote in message
news:cj********************************@4ax.com...
On Sun, 27 Aug 2006 23:55:45 +0800, "Scott"
<No*************@GMail.comwrote:
Try reversing the two lines.
-Tom.
>>I have a simple databased developed on Access 97. Recently I converted it
to 2003 but not work on a parameter query. The program starts with a
opening form. When I press "Esc" key, it will open a form that connects
to
a parameter query. The parameter query box appeared. Once I entered the
key words, it failed and display the following error.

Run-time error '2501':
The OpenForm action was canceled.

When click Debug button, it showed

Private Sub Form_KeyPress(KeyAscii As Integer)

If KeyAscii = 27 Then

DoCmd.Close acForm, "frmContributor", acSaveYes
DoCmd.OpenForm "frmTechInfo"
Else
Beep
End If

End Sub

The fourth line was highlighted in yellow. Can someone advise the
possible
causes and fixes.

Thanks,

Scott


Aug 27 '06 #4
Bob,

Your assumption is correct. Once I pressed "Esc" button and the form
opened. As the form is linked with a parameter query, the parameter query
box appeared. I entered the key word and hitted the Enter button. The
error message came on.

Scott

"Bob Quintal" <rq******@sPAmpatico.cawrote in message
news:Xn*********************@66.150.105.47...
"Scott" <No*************@GMail.comwrote in
news:4l************@individual.net:
>I have a simple databased developed on Access 97. Recently I
converted it to 2003 but not work on a parameter query. The
program starts with a opening form. When I press "Esc" key,
it will open a form that connects to a parameter query. The
parameter query box appeared. Once I entered the key words,
it failed and display the following error.

Run-time error '2501':
The OpenForm action was canceled.

When click Debug button, it showed

Private Sub Form_KeyPress(KeyAscii As Integer)

If KeyAscii = 27 Then

DoCmd.Close acForm, "frmContributor", acSaveYes
DoCmd.OpenForm "frmTechInfo"
Else
Beep
End If

End Sub

The fourth line was highlighted in yellow. Can someone advise
the possible causes and fixes.

Thanks,

Scott
By foutrh line, I assume you mean DoCmd.OpenForm "frmTechInfo"
try to open frmtechinfo in design mode. find the recordsource
property of that form. It will be your parameter query.
Run the query by double-clicking it.

Does it run, or give you an error message?

Report back here.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Aug 27 '06 #5
"Scott" <No*************@GMail.comwrote in
news:4l************@individual.net:
Bob,

Your assumption is correct. Once I pressed "Esc" button and
the form opened. As the form is linked with a parameter
query, the parameter query box appeared. I entered the key
word and hitted the Enter button. The error message came on.
Ok, you ran the form, which triesd to run hte query. Did you run
the query without the form.

It could be that the query failed to convert, the form which
failed to convert, or the form used code or a macro that failed
to convert.

Run the query without the form.
Also open the form in design view, open the form's code module
and try to compile it.

Scott

"Bob Quintal" <rq******@sPAmpatico.cawrote in message
news:Xn*********************@66.150.105.47...
>"Scott" <No*************@GMail.comwrote in
news:4l************@individual.net:
>>I have a simple databased developed on Access 97. Recently
I converted it to 2003 but not work on a parameter query.
The program starts with a opening form. When I press "Esc"
key, it will open a form that connects to a parameter query.
The parameter query box appeared. Once I entered the key
words, it failed and display the following error.

Run-time error '2501':
The OpenForm action was canceled.

When click Debug button, it showed

Private Sub Form_KeyPress(KeyAscii As Integer)

If KeyAscii = 27 Then

DoCmd.Close acForm, "frmContributor", acSaveYes
DoCmd.OpenForm "frmTechInfo"
Else
Beep
End If

End Sub

The fourth line was highlighted in yellow. Can someone
advise the possible causes and fixes.

Thanks,

Scott
By foutrh line, I assume you mean DoCmd.OpenForm
"frmTechInfo" try to open frmtechinfo in design mode. find
the recordsource property of that form. It will be your
parameter query. Run the query by double-clicking it.

Does it run, or give you an error message?

Report back here.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Aug 27 '06 #6

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

Similar topics

4
by: Mark Hayworth | last post by:
Randy: I too am having the problem that this other guy/girl had. I put in the proper API declarations and arguments for GetPrivateProfileString yet it doesn't return the correct stuff. It always...
2
by: Matt | last post by:
When I tried to open an existing proj1.csproj in VS.NET 2003. It pops up a dialog saying "The project 'proj1.csproj' must be converted to the current project format. After it has been converted,...
2
by: GW | last post by:
After the conversion and fixing some errs VS2005 threw, project ran OK. Opened xxx.vbproj file after the conversion to VS2005 from VS2003. Changed (usng wordpad) ../msbuild/2003 to 2005...
11
by: John Ortt | last post by:
Hi everyone. I have a database which I have developed in Access 2000 which is working nicely. The problem is that my customer only has Access 97. I tried to convert the database but the main...
3
by: larpup | last post by:
I've written an app in A2003 only to find out that some customers are presently using A2000. Rather than place a runtime on their computer, it would be more convenient to convert appt to A2000 if...
8
by: rdemyan via AccessMonster.com | last post by:
I've converted my application from A2K format to A2003 format. I tried to follow Allen Browne's protocol in getting my app into A2003 (although I was unable to find informtion on the conversion...
2
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I've just opened an old web project in VS2005 for the first time, and it went through the conversion wizard with 0 errors. However, I can't seem to get intellisense to work in the C#...
0
by: =?Utf-8?B?TWFyayBX?= | last post by:
I have just upgraded Visual Studio from 2003 to 2005 and am in the process of converting my VB applications. Most conversions have gone quite smoothly. However, I have several Add-Ins that I...
0
by: Learner | last post by:
Hello, I have converted a VS 2003 project that has few Crsytalreports in it to VS 2005. All the dlls got converted well and my application works well except the Crystalreports part. I have a...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.