473,382 Members | 1,180 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,382 software developers and data experts.

Parameter Promp After Form Closing

jv
I have a form named frmCustomerWithJobs with a combo box with the
following rowsource:

SELECT ContactID, ContactName, ContactType, Phone, ContactTitle FROM
Contacts WHERE CustomerID=[Forms]![frmCustomerWithJobs]![CustomerID]

The combo box works OK. However, after I close this form, a parameter
box would appear asking me for the
[Forms]![frmCustomerWithJobs]![CustomerID] parameter.

I can't figure out why it is doing this. I've try stepping through it
in break mode. However, the behavior does not occur in break mode.
Please help.

Thanks.

Julie Vazquez

Mar 7 '06 #1
3 1396
Br
jv wrote:
I have a form named frmCustomerWithJobs with a combo box with the
following rowsource:

SELECT ContactID, ContactName, ContactType, Phone, ContactTitle FROM
Contacts WHERE CustomerID=[Forms]![frmCustomerWithJobs]![CustomerID]

The combo box works OK. However, after I close this form, a parameter
box would appear asking me for the
[Forms]![frmCustomerWithJobs]![CustomerID] parameter.

I can't figure out why it is doing this. I've try stepping through it
in break mode. However, the behavior does not occur in break mode.
Please help.

Thanks.

Julie Vazquez


Do you have any code on one of the events triggered when the form is closed?
--
regards,

Br@dley
Mar 7 '06 #2
jv wrote in message
<11**********************@i39g2000cwa.googlegroups .com> :
I have a form named frmCustomerWithJobs with a combo box with the
following rowsource:

SELECT ContactID, ContactName, ContactType, Phone, ContactTitle FROM
Contacts WHERE CustomerID=[Forms]![frmCustomerWithJobs]![CustomerID]

The combo box works OK. However, after I close this form, a parameter
box would appear asking me for the
[Forms]![frmCustomerWithJobs]![CustomerID] parameter.

I can't figure out why it is doing this. I've try stepping through it
in break mode. However, the behavior does not occur in break mode.
Please help.

Thanks.

Julie Vazquez


I don't know, but could it be this?
http://support.microsoft.com/?id=811860

--
Roy-Vidar
Mar 8 '06 #3
jv
Thank you for the link. I think you identified the problem. I worked
around it by populating the combo box using VBA:

BillingContactID.RowSource = "SELECT ContactID, ContactName,
ContactType, Phone, ContactTitle FROM Contacts WHERE CustomerID='" &
[CustomerID] & "'"

Mar 10 '06 #4

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

Similar topics

3
by: bruce | last post by:
Hello, In Access 2003 one can use OpenReport with the acDialog parameter to open a report modally. However, doing this prevents the report's toolbars from displaying. Is there a way around...
1
by: Chris Bruce | last post by:
In my application I need a way to distiguish between the following events: 1. When a user closes an MDI child window. 2. When the user closes the MDI parent window which subsequently closes the...
6
by: Gary Miller | last post by:
Does anyone know how to detect a modeless form on closing by the form that invoked the modeless form? form.Show();
1
by: **Developer** | last post by:
When I get a closing event in a MID Child form I don't know if the child form is closing or the main form is closing. Is there a way to tell? Thank
8
by: Patreek | last post by:
Hi, On the line where I'm assigning RecordCount to be the value of my output parameter, I'm getting the generic "Object reference not set to an instance of an object" error. I've isolated it...
15
by: main() | last post by:
Hi all, When i compile following piece of code, # include <stdio.h> void fun(int val) { int val; /*problem is here*/ printf("%d\n",val);
3
by: Darin | last post by:
I have a problem I just can't figure out. I have a form with a subform, and the recordsource of the subform has criteria based on some unbound fields in the parent form so that data in the parent...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
19
by: zacks | last post by:
I have a .NET 2.0 MDI application where the child form has a Tab Control. Each of the Tab in the Tab Control has a Validating event to handle what it should do when the user changes tabs. But...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.