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 4th, 2008, 05:05 AM
Authorized User
 
Join Date: Oct 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validating Input from a Datasheet using VBA

I have a small database for my own personal use.

I'm trying to validate some fields in VBA. I've added a function in VBA but I can't seem to tie it to the field I am trying to validate. I assumed the function would be visible in the validation dialogue but only the Built in functions appear.

If I create a form then the function is visible via the validation dialogue but i was hoping to use the default datasheet.

Is this possible
 
Old October 6th, 2008, 10:35 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

If you wanted to validate data, you can either create data validation at the table design level, or use a form and create the data validation on the form. I think if you must use a datasheet for data entry (since it is a personal database) then I would do data validation at the table design level. Working with datasheets is too problematic for this, I think.

Did any of that help?

mmcdonal

Look it up at: http://wrox.books24x7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
use vba to add a row to datasheet TerryAutomation Access VBA 2 July 11th, 2005 01:07 PM
validating input bukky VBScript 1 April 1st, 2004 04:30 AM
validating user input hosefo81 Javascript How-To 12 March 3rd, 2004 09:32 AM
Datasheet View Column Width - VBA Dataman Access 1 February 5th, 2004 02:32 PM
Validating user input stu9820 VB.NET 2002/2003 Basics 2 January 15th, 2004 12:51 PM





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