Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 December 28th, 2003, 10:18 PM
Authorized User
 
Join Date: Oct 2003
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default check subform fields

hi, how do i check if the fields in the subform is empty???

pls advice
nono

 
Old December 29th, 2003, 11:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Using a textbox as an example,

Code is in the main form:

Code:
   If IsNull(Me.sfrMySubForm.Form.txtMyTextBox) Then
      'Do something here with code.
   Else
      'Do something else here with code.
   End If

Code is in the subform:

Code:
   If IsNull(Me.txtMyTextBox) Then
      'Do something here with code.
   Else
      'Do something else here with code.
   End If

Use the real names instead of sfrMySubForm and txtMyTextBox.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable fields in a subform ltdavecass Access VBA 4 January 31st, 2007 09:43 PM
Form & Subform Closing w/Completion Check SarahL Access 4 June 2nd, 2006 07:22 AM
Controlling width of fields in a subform HowardB Access 2 April 13th, 2005 06:50 AM
accessing fields in a subform Hudson40 Access VBA 8 March 25th, 2005 06:15 AM
How to check for empty fields in a form. crmpicco Javascript How-To 7 February 15th, 2005 10:38 AM





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