Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-27-2009, 07:58 AM
queenbee queenbee is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: Feb 2009
Location: Ohio
Posts: 2
queenbee is on a distinguished road
Question Using tab control pages

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?
Reply With Quote
  #2  
Old 02-28-2009, 06:43 PM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,322
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

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"
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 01:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.