A
Arvi Laanemets
Hi
In my project, I have a multi-page unbound form fmMain.
In one of pages, I want a certain item register designed as follows:
The is a subform sfMyReg0 with non-continous form fmMyReg0 as source.
fmMyReg0 will serve as a container:
Record Source = SELECT tblMyReg.* FROM tblMyReg WHERE
((([tblMyReg].[Type])=2));
Record Selectors = No;
Navigation Buttons = No;
There is a hidden textbox txtType (Value = 2) on fmMyReg;
There is also a subform sfMyReg1 with continous form fmMyReg1 as source:
Link Chield Fields = Type;
Link Master Fields = txtType.
(Whenever I add a new record in form fmMyReg1, the value for field
Type will be automatically =2)
fmMyReg1
Record Source = SELECT tblMyReg.* FROM tblMyReg WHERE
((([tblMyReg].[Type])=2));
(Record sources for both forms fmMyReg0 and fmMyReg1 are identical)
Record Selectors = Yes;
Navigation Buttons = Yes;
(As additional info, there will be other subforms on form fmMyReg, whith are
linked to field MyRegID of table tblMyReg - i.e. whenever some record is
activated in forms fmMyReg0 and fmMyReg1, a some specific info bound with
this record is displayed in those subforms)
What I need, is to synchronise both forms fmMyReg0 and fmMyReg1 - i.e.
whenever I navigate to any record in one form, the same record has to be
activated in another one too. And additionally, whenever I add a new record
in form fmMyReg1, the form fmMyReg0 has to cope with this situation too.
Currently I tried in Current event for fmMyReg1 to use
Me.Parent.Form.Bookmark = Me.Bookmark
, and I'll get
"Run-time error '2001':
You cancelled the previous operation."
I have been trying to cope with this a quite a lot of time now, so maybe
someone here can provide some help!
Thanks in advance!
Arvi Laanemets
In my project, I have a multi-page unbound form fmMain.
In one of pages, I want a certain item register designed as follows:
The is a subform sfMyReg0 with non-continous form fmMyReg0 as source.
fmMyReg0 will serve as a container:
Record Source = SELECT tblMyReg.* FROM tblMyReg WHERE
((([tblMyReg].[Type])=2));
Record Selectors = No;
Navigation Buttons = No;
There is a hidden textbox txtType (Value = 2) on fmMyReg;
There is also a subform sfMyReg1 with continous form fmMyReg1 as source:
Link Chield Fields = Type;
Link Master Fields = txtType.
(Whenever I add a new record in form fmMyReg1, the value for field
Type will be automatically =2)
fmMyReg1
Record Source = SELECT tblMyReg.* FROM tblMyReg WHERE
((([tblMyReg].[Type])=2));
(Record sources for both forms fmMyReg0 and fmMyReg1 are identical)
Record Selectors = Yes;
Navigation Buttons = Yes;
(As additional info, there will be other subforms on form fmMyReg, whith are
linked to field MyRegID of table tblMyReg - i.e. whenever some record is
activated in forms fmMyReg0 and fmMyReg1, a some specific info bound with
this record is displayed in those subforms)
What I need, is to synchronise both forms fmMyReg0 and fmMyReg1 - i.e.
whenever I navigate to any record in one form, the same record has to be
activated in another one too. And additionally, whenever I add a new record
in form fmMyReg1, the form fmMyReg0 has to cope with this situation too.
Currently I tried in Current event for fmMyReg1 to use
Me.Parent.Form.Bookmark = Me.Bookmark
, and I'll get
"Run-time error '2001':
You cancelled the previous operation."
I have been trying to cope with this a quite a lot of time now, so maybe
someone here can provide some help!
Thanks in advance!
Arvi Laanemets