473,386 Members | 1,801 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,386 software developers and data experts.

Subform Help!!

I'm using Access 97, I have a problem with my form. I have a subform
inside my form. I would like to diable the subform if submission
number is 1 and enable it if it is greater than 1. I will only use the
subform if submission number is greater than 1. or make it a subform a
require field if submission number is greater than one. I've try
several code but none of them seem to be working.
Private Sub Submission_Number_AfterUpdate()
If Me!Submission_Number = 1 Then
Me.tblFiling_subform.Visible = False
Else
Me.tblFiling_subform.Visible = True
Please help, any suggestion would be greatly appreciate.

Nov 13 '05 #1
2 1282
Also put your code in the main firm's Current event.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"kufre" <ku********@yahoo.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I'm using Access 97, I have a problem with my form. I have a subform
inside my form. I would like to diable the subform if submission
number is 1 and enable it if it is greater than 1. I will only use the
subform if submission number is greater than 1. or make it a subform a
require field if submission number is greater than one. I've try
several code but none of them seem to be working.
Private Sub Submission_Number_AfterUpdate()
If Me!Submission_Number = 1 Then
Me.tblFiling_subform.Visible = False
Else
Me.tblFiling_subform.Visible = True
Please help, any suggestion would be greatly appreciate.

Nov 13 '05 #2
I try putting this code into the form's current event but I keep
getting a error message "Microsoft Access Can't find the field
'Submission_Number referred to in your expression". I'm not sure what
that mean. I'm also not sure why I should put the code in the main
form's current event. Please explain.

Thank you in advance.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fionnbarr Kennedy | last post by:
Hi all I have posted this problem before but am having no joy! I have an app written in Access 2000 which is based around a Form/Subform. The problem is with a new XP box only - the same app...
2
by: hawg1 | last post by:
I'm fairly new to Access and need help with form/subform. I've seen another access database in which a main form allowed the user to enter school class specific information shuch as start date,...
2
by: docsix | last post by:
I am having trouble populating a combo box in a subform. Currently I have two combo boxes on a single form that works. This is my current setup: Table:Facilities - FacilityID ... FacilityType 1...
3
by: yarg1001 | last post by:
I have created a subform which is a series of check boxes. When opening the form all of the checkboxes work. The subform is referenced directly to the underlying table. When accessing the...
2
by: simontian | last post by:
Hi I have been stuck for months. Please help !! I have created an unbound subform and use the ADO connection. I have got a "Save" command button. The users can only save any changes by...
3
by: jonceramic | last post by:
Hi, I have a 2 subform form, which uses the selection of a row in subform 1 to show a set of rows in subform 2. I have my queries pointing directly to fields on my form to choose what data is...
1
by: DBQuestions | last post by:
I'm having a lot of trouble understanding what I should do. I think I've read too many responses on several groups...my brain is fried! I have a form to make different category selections and it...
1
by: chester64 | last post by:
Hello, I have created a form with 2 comboboxes (Employee_ID & Order_Num) and 1 Subform (sfOrder_Detail). The way I'm trying to make it work is like this ... you select the Employee in the...
0
by: T Woldehanna | last post by:
I have a form for entering events and it has a sub-form for tracking communications on that event. When a new event is added, I want to automatically add a new row with specific values such as = "to...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.