Urgent

  • Thread starter Thread starter Jorge Ribeiro
  • Start date Start date
J

Jorge Ribeiro

I have a form A and and a subform B in it

I need to pass a value from A to B, not a control value, a integer value so
that
when subform B receives it it can update is data accordingly.

I build a property let on subform B but i can't invoke it from form A.

please help me on passing data between forms...
its urgent

Jorge
 
I've a property defined in frmAddress
something like

public property let/get addressId

I then have a form Client that has an Address subform inside, named subAddress
I was trying to do something like subAddress!addressId=123

I does not work...

It seems that to use the property i have to reference
From_frmAddress.addressId=123

but this kind of code will assign property value to the first open
frmAddress... if
i have 2 such forms open only the first one wil be updatable...

it seems that's not mutch to do here
to work arround this, i created an button in frmAddress that in click event
reads form's Tag property and do its job accordingly.

Now i can't invoke click event of that button from parent form...

is there a way to communicate between parent form and subforms ????

I'm desperate... i'm handling this problem over the past 3/4 days
 
Jorge Ribeiro said:
I have a form A and and a subform B in it

I need to pass a value from A to B, not a control value, a integer value
so
that
when subform B receives it it can update is data accordingly.

I build a property let on subform B but i can't invoke it from form A.

please help me on passing data between forms...
its urgent

Jorge

First make your property let/get procedures public, ie replace the word
Private with the word Public. That makes the procedure available outside the
form's module. Then, in your main form, set the property like this:

Me.SubformControl.Form.PropertyName = 123
 
Thanx a lot Stuart...
i tried that first but as i didn't see property name with inteli-sense i
tried going another way...

you're a life saver...

thanx again
 
Back
Top