silentwolf
Well-known Member
- Joined
- May 14, 2008
- Messages
- 1,192
- Office Version
-
- 2016
Hi guys,
Unfortunatelly I am stuck again..
I have a multipage contol in a access form... following tables I got..
tblKunden kunID Primary Key
tblObjekte objID Primary Key objKunIDRef ForeingKey to tblKunden
tblObjMitarbeiter objMID Primary Key objMObjIDRef foreignkey to tblObjekt
I have a code wich works fine and reference to the kunID but when I like to reference tblObjMitarbeiter to tblObject I can not make it work.
Here is the code I am useing...
as the .LinkMasterField is not kunID I have troubles to reference it correctly..
In a multipage I got only one control ("Subform") which gets its values from the code above..
The code in red is not working and I am not quite sure how to reference it correctly..
I hope you guys understand what I am after and can help me with this.
Many thanks
Unfortunatelly I am stuck again..
I have a multipage contol in a access form... following tables I got..
tblKunden kunID Primary Key
tblObjekte objID Primary Key objKunIDRef ForeingKey to tblKunden
tblObjMitarbeiter objMID Primary Key objMObjIDRef foreignkey to tblObjekt
I have a code wich works fine and reference to the kunID but when I like to reference tblObjMitarbeiter to tblObject I can not make it work.
Here is the code I am useing...
Code:
With Me.sfmDetails
On Error Resume Next
.SourceObject = ""
.LinkChildFields = ""
.LinkMasterFields = "kunID"
On Error GoTo 0
Select Case Me.mpgDaten.Value
Case Me.pagKunden.PageIndex
.SourceObject = "frmKundenDetails"
.LinkChildFields = "kunID"
Case Me.pagObjekte.PageIndex
.SourceObject = "frmObjektKunden"
.LinkChildFields = "objKunIDRef"
[COLOR=#ff0000] Case Me.pagObjStunden.PageIndex
.SourceObject = "frmObjMitarbeiter"
.LinkMasterFields = "objID"
.LinkChildFields = "objMObjIDRef"[/COLOR]
Case Else
In a multipage I got only one control ("Subform") which gets its values from the code above..
The code in red is not working and I am not quite sure how to reference it correctly..
I hope you guys understand what I am after and can help me with this.
Many thanks