473,387 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Altering properties of sub-form from parent

Corster
36
I'm fairly new to Access, so please have patience...

I have an application that I've written to audit all of our computers, monitors etc. which also works-out the Intel processor details from the core speed and processor technology (eg. Pentium D).
I also have a field which calculates a "Score" based on RAM, CPU, HDD and FSBs.
I have two tables, Asset and Computers:
Asset contains the ID, department, user, category, make, model, serial, purch cost, purch date, invoice, disposal date and any additional values.
Computers contains the Name; McAfee Agent version; OS Vendor, Version, SP; CPU Type, Core Speed, No. Cores, No. Threads, FSB, Code Name; RAM, FSB; HDD; Office Version; VNC; Asset Number (ID); and Score.

To match these two tables, I have two forms, the Asset form is the parent, the Computers form is the sub-form.

What I'd like to do is somehow change the sub-form's Enabled property to False when the Asset.Type is not Notebook or Computer, but there is no Enabled property. How do I go about doing something to this effect?

I have tried to Dim the sub-form to a variable and set the form's controls' Enabled properties aswell to no avail.

I'm also trying to create a search tool - I have a button which should DoCMD.FindNext for txtSearch.Text in the field defined by what is selected in a combo box. That don't work iether.

PLEEEEASE could someone help!
Many thanks in advance!
Mar 29 '07 #1
3 1730
Rabbit
12,516 Expert Mod 8TB
Subforms DO have an enabled property. Are you sure you're looking at the correct properties? The property of the subform object and not the form?
Mar 29 '07 #2
Corster
36
Subforms DO have an enabled property.
Aaaah!
Me.[SubForm].Enabled = True/False

I thought the subform would have it's own separate class, not under the main form's class.
Apr 2 '07 #3
Rabbit
12,516 Expert Mod 8TB
Aaaah!
Me.[SubForm].Enabled = True/False

I thought the subform would have it's own separate class, not under the main form's class.
The subform object is a container. Since it resides on the main form, it belongs to the main form.
Apr 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Marble | last post by:
I looked around for a way to change the format and the decimal setting of a REAL type variable, but I can't seem to be able to find the synthax anywhere. Here is an exemple of what I am doing: ...
24
by: downwitch | last post by:
Hi, I know this has been covered here and in the .public groups, but it seems like it's been a while, especially around here, so I just thought I'd ask again to see if anyone has figured out a...
7
by: Donald Grove | last post by:
Is it possible to retrieve field properties from a table in access2000 using code? I have tried: " dim dbs as dao.database dim tbl as dao.tabledef dim fld as dao.field dim prop as...
1
by: Adam | last post by:
It seems you cannot through an httpmodule alter request.headers. Is there a way around this (sure.. it works fine in isapi of course). It doesn't seem to have been changed in asp.net 2.0 either....
12
by: Bernie Yaeger | last post by:
My client has a visual foxpro app that he wants me to hook into. I'm connecting to it via odbc with this connectionstring: Dim oconn_d As New OdbcConnection("Driver={Microsoft Visual FoxPro...
5
by: Simon | last post by:
Hi all, We have an ASP.NET 1.1 application running on IIS6 on Server 2003. Most of the base objects we are using in this application are taken from a windows application also written by us. We...
9
by: JimmyKoolPantz | last post by:
IDE: Visual Studio 2005 Language: VB.NET Fox Pro Driver Version: 9.0.0.3504 Problem: I currently have a problem altering a DBF file. I do not get any syntax errors when running the program. ...
8
by: Ethan Kennerly | last post by:
Hello, There are a lot of Python mailing lists. I hope this is an appropriate one for a question on properties. I am relatively inexperienced user of Python. I came to it to prototype...
10
by: Derek Hart | last post by:
I am going in circles trying to loop through properties on 3rd party controls. For example, I have a textbox that has its maximum length located at MyTextBox.Properties.MaxLength - instead of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.