![]() |
|
|
#1
|
|||
|
|||
|
I am using the following code that works!
Private Sub NoticeID_Click() On Error GoTo Err_Notice_Click Dim FormName As String Dim LinkCriteria As String FormName = "NoticeDetail" LinkCriteria = "[NoticeID] =""" & Me.NoticeID & """" DoCmd.OpenForm FormName, , , LinkCriteria Exit_Notice_Click: Exit Sub Err_Notice_Click: MsgBox Err.Description Resume Exit_Notice_Click End Sub I am experiencing a problem when I change FormName to a TestForm with tab control pages, the data is not filtering into the TestForm. Any suggestion on how to make it work? |
|
#2
|
||||
|
||||
|
I thought I answered this in one of the forums. The Tab Control should not make any difference. The WhereCondition argument of the OpenForm command simply puts a filter on the MainForm. If you have SubForms on your tab control, they are not directly addressed except through the LinkChild/MasterFields properties of the SubFormControls.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tab Control Pages | queenbee | Access | 1 | 02-28-2009 07:21 AM |
| Control navigation pane | ohporter | Access | 0 | 05-27-2008 10:45 AM |
| Sending control to specific control | wasim_sono | Programming | 2 | 04-19-2007 06:19 AM |
| No object in this control | mtrcar1 | Access | 0 | 10-12-2006 03:31 PM |
| Grid Control - or something like that. | rhunt | Programming | 1 | 12-15-2005 01:46 PM |