Getting an odd result and can't quite see why
I set My Forms Record source to a Query and open the Form
Why isn't Msgbox Me.RecordSource the same as the RecordSource assigned in Private Sub cmdEdtEntry_Click and why does the Msgbox come up twice?
I set My Forms Record source to a Query and open the Form
Code:
Private Sub cmdEdtEntry_Click()
Form_frmMismatchComm.RecordSource = "Select * from qryFullBB Where Prefix = '" & Me!lblThisPrefix.Caption & "';"
StatBarPrint (Form_frmMismatchComm.RecordSource)
DoCmd.OpenForm "frmMismatchComm", acNormal, , , , acDialog
End Sub
Sub StatBarPrint(MyString)
Dim strReturn As String
strReturn = SysCmd(acSysCmdSetStatus, MyString)
End Sub
Private Sub Form_Load()
DoCmd.MoveSize 1500, 2200, 26000, 12000
MsgBox Me.RecordSource
End Sub