Hi there, this is my first post! I have some experience managing an Access project (including the VBA code behind it), but it's mainly self-taught. I use the Access version from Microsoft 365.
My question: Is it possible to scale two subforms in one form equally, so that they'll each take up 50% of the screen (one on the left side, and one on the right side)? The idea is to have the parent data on the left, and when the user selects a row, the subform on the right will show the data that is part of that parent. Both subforms would be datasheet views. I know it's possible to have the two subforms, but I can't get the alignment to work. None of the anchoring options in the arrange tab seem to get to the wanted behaviour.
I also tried this using VBA, where you could set the left and width properties during the Form_Load (and later on in the Form_Resize) events. However, Form.Width is not the full width of the screen as it turns out since it repositions the widgets but not where i want them.
What am I missing?
Thanks in advance
My question: Is it possible to scale two subforms in one form equally, so that they'll each take up 50% of the screen (one on the left side, and one on the right side)? The idea is to have the parent data on the left, and when the user selects a row, the subform on the right will show the data that is part of that parent. Both subforms would be datasheet views. I know it's possible to have the two subforms, but I can't get the alignment to work. None of the anchoring options in the arrange tab seem to get to the wanted behaviour.
I also tried this using VBA, where you could set the left and width properties during the Form_Load (and later on in the Form_Resize) events. However, Form.Width is not the full width of the screen as it turns out since it repositions the widgets but not where i want them.
Code:
Private Sub Form_Load()
With Me.leftSubform
.Left = 0
.Width = Form.Width / 2
End With
With Me.rightSubform
.Left = Form.Width / 2
.Width = Form.Width / 2
End With
End Sub
What am I missing?
Thanks in advance
