Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2009, 10:14 PM
Authorized User
 
Join Date: Feb 2009
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Data Cannot Displayed On SubForm Correctly

I have created one main form, under this main form, there is one subform (subform name: SubForm_Production_Schedule) and one button. When this button is clicked, I need the data to display on subform base on certain criteria. Below is the part of the code under the button click event

Quote:
Me!SubForm_Production_Schedule.SourceObject = "Table.Production_Schedule"

Me!SubForm_Production_Schedule.Form.RecordSource = "select * from Production_Schedule where Login='" & txtOperator.Value & "'"

Me!SubForm_Production_Schedule.Requery

Me.Refresh

Me.Repaint


However, there isn't any data appear after the button is clicked. When I search back the table Production_Schedule, in fact there are more than 100 rows of data available.

Anyone can advise the what goes wrong to the above coding ? I am using the MS Access 2000.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to add a line after ever row of data displayed rabs XSLT 7 April 15th, 2009 01:59 PM
SSIS Not pulling data correctly chevy SQL Server 2005 0 February 26th, 2008 04:12 PM
data not being displayed goingmad SQL Server ASP 8 March 27th, 2006 03:36 AM
Program works, but no data being displayed bebe XML 0 October 14th, 2003 01:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.