hello,
i am using ms access 03 and am trying to add a button to open a form. seems like it should be fairly straightforward, but i can't figure this out at all...
any help appreciated, ty
Here is code to open a form called "SearchForm" using a command button.
Private Sub Command107_Click() On Error GoTo Err_Command107_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "SearchForm" DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_Command107_Click: Exit Sub Err_Command107_Click: MsgBox Err.Description Resume Exit_Command107_Click End Sub
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks