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

Home Posts Topics Members FAQ

Help with Form_Load calls and Enter Parameter Value issues

I am having 2 issues, both acting very randomly, and for the most part
I dont get this message on most computers, but I have had a couple
computers get either issue 1, or issue 2.

Issue #1: I have a module that has a function that starts as:
Function setFormColors(frm As Form)
This function takes a form and looks through its objects and if
certain object names meet a certain critera (such as start with lblBD)
do a certain action (like make the label bold).

Then in each forms code I have:
Private Sub Form_Load()
setFormColors Me
End Sub

The computers that dont like it, are telling me that setFormColors Me
is having a type mismatch error. I wish I knew why since this call
DOES work on 90% of computers.

Issue #2: I am having some computers give a 'enter parameter value'
message when a customer closes one or more certain forms. One of the
close button's codes follows:

Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click

If IsNull(Me.Discount) Then
Me.Discount = 0
End If

DoCmd.DoMenuItem A_FORMBAR, A_FILE, A_SAVERECORD

DoCmd.Close acDefault, frmJob

Exit Sub
Err_cmdClose_Click:
MsgBox Err.Description

End Sub

Please let me know if anyone knows what is going on. Thanks so much.

I started developing this program when Access first came out, and SOME
forms havent been changed in their calls. I now develop in Access XP.
This program works on a lot of computers, so I am stumped why a
couple computers are having issues.

Thanks for your help.
-Phil Seguin
Nov 12 '05 #1
3 5482
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Issue #2:

You can eliminate the OnClose event by setting the Discount column's
default to zero.

HTH,

MGFoster:::mgf
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP7lweoechKqOuFEgEQI8SgCg5n7vTT2DK1DieL8h2hrKeL FqLbYAn1Du
ZXnBfXlpi+kESY8O8z/3bmu/
=UILa
-----END PGP SIGNATURE-----

Phil IU Guy wrote:
I am having 2 issues, both acting very randomly, and for the most part
I dont get this message on most computers, but I have had a couple
computers get either issue 1, or issue 2.

Issue #1: I have a module that has a function that starts as:
Function setFormColors(frm As Form)
This function takes a form and looks through its objects and if
certain object names meet a certain critera (such as start with lblBD)
do a certain action (like make the label bold).

Then in each forms code I have:
Private Sub Form_Load()
setFormColors Me
End Sub

The computers that dont like it, are telling me that setFormColors Me
is having a type mismatch error. I wish I knew why since this call
DOES work on 90% of computers.

Issue #2: I am having some computers give a 'enter parameter value'
message when a customer closes one or more certain forms. One of the
close button's codes follows:

Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click

If IsNull(Me.Discount) Then
Me.Discount = 0
End If

DoCmd.DoMenuItem A_FORMBAR, A_FILE, A_SAVERECORD

DoCmd.Close acDefault, frmJob

Exit Sub
Err_cmdClose_Click:
MsgBox Err.Description

End Sub

Please let me know if anyone knows what is going on. Thanks so much.

I started developing this program when Access first came out, and SOME
forms havent been changed in their calls. I now develop in Access XP.
This program works on a lot of computers, so I am stumped why a
couple computers are having issues.

Thanks for your help.
-Phil Seguin

Nov 12 '05 #2
Thank you for your help, but I do not think that is the issue. If it
is the issue, then can you please explain to me why setting the
discount would be prompting some, but not all users for a parameter
value when clicking the close button. Thank you.

-Phil Seguin
Hash: SHA1

Issue #2:

You can eliminate the OnClose event by setting the Discount column's
default to zero.

HTH,

MGFoster:::mgf
Oakland, CA (USA)

Nov 12 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You're right. I saw cmdClose and misinterpreted it as Form_Close.

The only thing setting the Discount default value to zero would do
would enable you to get rid of this:

If IsNull(Me.Discount) Then
Me.Discount = 0
End If

in the cmdClose_Click event.

==

It would seem that when your form(s) close a query is run that demands
a query parameter. Check the BeforeUpdate, AfterUpdate event
procedures to see if they are opening a query, or a report, or
something that runs a query. You could also check your queries for
the parameter named in the pop-up parameter request box.

HTH,

MGFoster:::mgf
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP7p2IIechKqOuFEgEQIBIwCgo34lGoHZZ9oTXVHZYev2Zp dTA/8AoOn3
/kJVuA4HTVLXr/3ZSmoVeAwC
=08st
-----END PGP SIGNATURE-----
Phil IU Guy wrote:
Thank you for your help, but I do not think that is the issue. If it
is the issue, then can you please explain to me why setting the
discount would be prompting some, but not all users for a parameter
value when clicking the close button. Thank you.

-Phil Seguin

Hash: SHA1

Issue #2:

You can eliminate the OnClose event by setting the Discount column's
default to zero.

HTH,

MGFoster:::mgf
Oakland, CA (USA)


Nov 12 '05 #4

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

Similar topics

9
by: SB | last post by:
Ok, very simple problem. I'm trying to update a value by calling a function using pass by reference, but it does not update the value. In short, the value I'm trying to update is balance, which is...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
15
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
22
by: Amali | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of...
5
by: cherriecheng88 | last post by:
hi...did anyone know how to do this assignment? cuz, i have run out of time really need ppls help me out thank you if you know it... Blackjack For the third assignment you will write a program...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.