PC Review


Reply
Thread Tools Rate Thread

3-level datasheet form problem

 
 
New Member
Join Date: Dec 2009
Posts: 1
 
      12th Dec 2009
Hello,

I've met with problem when Access passes NULLs as parameters when executing the stored procedures used as data source for the forms

I have 3-level datasheet type form

There are 3 forms on a form: the main form, subform and sub-subform

It can be represented as Country is the main form, City - is the subform, street is sub-subform

Country has the data source as a simple SP without any parameters with simple SELECT statement in the SP like SELECT Country, CountryID FROM dbo.Country

The City form has the SP with @CountryID input parameter which returns all the Cities of the country.
There is only InputParameters propery is set for the form. And the InputParameters=@CountryID=Forms!Country!CountryID

Finally there is the sub-subform called Street to show all the streets of a city af a country
It has the SP with input parameters @CountryID and @CityID and in InputParameters they set as
InputParameters=@CountryID=Forms!Country!CountryID, @CityID=Forms!Country!City!CityID

The approach works but not stable. After several attempts expanding the forrms Access begins setting the @CityID to NULL when executing the SP for the Street form. As result the sub-subform is empty. The only cure for this is reopening the forms.

I was trying to find an event for the plus (+) which opens subform from the main form's record to correct the input parameters to be correct. But my attempts were unsuccessful. There are only the mouse's events available like MouseMove, MouseDown and MouseDown from the main form and in addition OnCorrent and OnResize of the subform.

But the mouse's events are inconvinient to use, and the OnCurrent and OnResize events of the subform are happened when the data already got from the server
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form-Level Validation Rules and Datasheet View croy Microsoft Access Forms 9 29th Nov 2007 11:06 PM
Datasheet Form problem Tony Williams Microsoft Access Forms 6 17th Nov 2007 12:07 PM
Form in datasheet view will not show my 2 subforms in datasheet vi =?Utf-8?B?VGhlMm5kMDA3YmFiZQ==?= Microsoft Access Forms 1 5th Mar 2007 07:41 PM
Form problem (datasheet)! Niklas Östergren Microsoft Access 0 24th Mar 2004 09:58 AM
Sum problem in datasheet form tmac Microsoft Access Getting Started 1 6th Nov 2003 08:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:30 PM.