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

Problem with subform when paratmeter query returns NULL

Hi There,

I have a main form that with a subform which is based on a parameter
query. I have 2 controls on the main form [OpenDate] & [Close Date]
which are used as parameters in the query. It all works fine and dandy
until the query returns no records. The main form just "whites out"
(probably due to the background coulor set to white!) when I get no
records. I have coded and error message in the subform for when no
records are returned and that doesn't show up either. It does however
work if the subform is opened independently. I have tried coding the
main form with the error message but again the white out prevails.
All I want if i get no records is that an error message pops up and
stes the foucs to the date controls.

Can anyone tell me what is going on please.

Cheers,

John

Oct 25 '06 #1
1 1836

Macbane wrote:
Hi There,

I have a main form that with a subform which is based on a parameter
query. I have 2 controls on the main form [OpenDate] & [Close Date]
which are used as parameters in the query. It all works fine and dandy
until the query returns no records. The main form just "whites out"
(probably due to the background coulor set to white!) when I get no
records. I have coded and error message in the subform for when no
records are returned and that doesn't show up either. It does however
work if the subform is opened independently. I have tried coding the
main form with the error message but again the white out prevails.
All I want if i get no records is that an error message pops up and
stes the foucs to the date controls.

Can anyone tell me what is going on please.
I have a feeling you're not using the LinkChildFields and
LinkMasterFields properties of your subform. I'm assuming that you
want your subform to return related records based on values in your
main form which is why you created the parameter query as the source
for your subform. Look up the LinkChildFields and LinkMasterFields in
online help. You should be able to accomplish the same task without
using a parameter query.

Bruce

Oct 25 '06 #2

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

Similar topics

4
by: CSDunn | last post by:
Hello, I have a combo box (Combo7) that needs to call a function during the After Update event of the combo box. The function resides in an Access 2000 ADP Module called MMAnswerData_code. The...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
5
by: Krechting | last post by:
Hi All, I have a db with three tables which have a relationship. The problem is that when I add a record to the ForAction table it will automatically add a record to the Originator table but not...
0
by: Giulio Santorini | last post by:
Hi, I've got two drop down list controls. When I select a value from the first one I fill the second one. And when I select a value from the second one I would like to fill another control. But...
4
by: Steve_s | last post by:
Hi I am having problems totalling a particular field in a subform.I am using Access 2003. The subform is based on a query which selects records with various financial information. I have 5 text...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
1
by: saundap | last post by:
Hi, Access 2000, Windows 2000 Professional I have a form I've developed that is designed for those not familiar with access and its query tool. WIthin a subform in the form there is presented...
1
by: csolomon | last post by:
Happy Friday! I was wondering if you can have more than one total in the footer. I ask this because when I set up one of my totals in the footer (lets call it total1), it works (slowly but it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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
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
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...

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.