S
StargateFanFromWork
I used a button to create a navigational button between two forms. When I
open up the target form manually, I get the datasheet view which most
resembles the original tables. It's neat because its built on a query, of
course, that is specific for our needs. But when I built a button just now
to go to this form, it gets opened instead in form view which is no good for
our purposes. What can I do to change this? I have the vb code that was
generated for this button but can't see what determines which view it's
opened in:
Private Sub OpenVoiceMailForm_Click()
On Error GoTo Err_OpenVoiceMailForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "EmployeeAndVoiceMail"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_OpenVoiceMailForm_Click:
Exit Sub
Err_OpenVoiceMailForm_Click:
MsgBox Err.Description
Resume Exit_OpenVoiceMailForm_Click
End Sub
Thanks so much! Cheers! D
open up the target form manually, I get the datasheet view which most
resembles the original tables. It's neat because its built on a query, of
course, that is specific for our needs. But when I built a button just now
to go to this form, it gets opened instead in form view which is no good for
our purposes. What can I do to change this? I have the vb code that was
generated for this button but can't see what determines which view it's
opened in:
Private Sub OpenVoiceMailForm_Click()
On Error GoTo Err_OpenVoiceMailForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "EmployeeAndVoiceMail"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_OpenVoiceMailForm_Click:
Exit Sub
Err_OpenVoiceMailForm_Click:
MsgBox Err.Description
Resume Exit_OpenVoiceMailForm_Click
End Sub
Thanks so much! Cheers! D