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 August 10th, 2004, 11:20 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do I store forms in an MS Access table?

MS Access Newbie needs help!

I know this is possible but need to know how. I've created a table tblAdmin. tblAdmin contains several records - each a form e.g. frmLogin with additional form properties in another column e.g., admin. I need to store all references to these forms in a single table and then read info from table when I need to use form and/or its respective properties. Does anyone know where there is some example code for this?

Thanks heaps...neuralSea
 
Old August 14th, 2004, 04:34 PM
Authorized User
 
Join Date: Oct 2003
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try This...
Paste into Standard Module, type "FormProperties" in immediate window, then press "enter".

Sub FormProperties()
On Error GoTo x
Dim objAO As AccessObject
Dim objObject As Object, frmForm As Form, prpProperty As Property

Set objObject = Application.CurrentProject

        For Each objAO In objObject.AllForms

         DoCmd.OpenForm objAO.Name, acDesign, , , , acHidden
         Set frmForm = Forms(objAO.Name)

                        For Each prpProperty In frmForm.Properties
                        Debug.Print objAO.Name & "; " & prpProperty.Name & " = " & prpProperty.Value
                        Next

         DoCmd.Close acForm, objAO.Name, acSaveNo

        Next


x:
Resume Next
End Sub

Any problems, or further questions, please let me know.

Good Luck!






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to store & retrive Image in Access table Rahul Gupta VB Databases Basics 0 September 30th, 2005 12:52 AM
Store Image in ms access ! Help ? hunghung Classic ASP Databases 1 September 21st, 2005 10:36 PM
Reading a MS-Access table: PYee Javascript How-To 9 February 7th, 2005 08:12 AM
MS Access Forms Labels AJBarnsley Access 4 November 15th, 2004 12:29 PM
MS Access Table Help Imran82 BOOK: Beginning Access VBA 0 December 23rd, 2003 08:17 AM





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