I have to option to view/edit a table on my form. HOw can i get that window in front of the form window. right now you have to exit the form in order to edit it.
Thanks,
QR
Thanks,
QR
Code:
Private Sub EditButton_Click()
Dim TableName As String
'err check if combobox is empty
If Len(Tablebox.Value & vbNullString) < 1 Then
MsgBox "You need to select a table to edit!"
Exit Sub
Else
TableName = Tablebox.Value
DoCmd.OpenTable TableName, acViewNormal
DoCmd.Close acForm, "MainMenu", acSaveNo
End If
End Sub