473,386 Members | 1,842 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.

Visible button on Sub form

I have a form in access 2000 with a combo box containing names, this
is linked to a sub form by the name index. on the sub form is a
button that when pressed automatically enters the date into the date
field. Now my problem is that when someone comes in and finds their
name and presses the sign in button it is no longer visible so they
can not sign in more than once that day.

My trouble is that i can nor remember how to use the button on the sub
form for the life of me, and it would be easier to ask the question
rather than wait for it to come back.

on the combo box i have an afterupdate function

me.(need the bit that selects the button on the sub form).visible =
True

And on the sign in btn i have the following code.

me.date = Now()
docmd.gotocontrol (i need to now the bit that switches the control to
the combo on the main form)
me.sign_in_btn.visible = false

could someone help with the blanks or explain how you activate the sub
form on a main form ie

me.text1 = now()

puts the date in the text 1 box on the current form you are on,

but what is the code to put the date in a date text field on a sub
form (sub form called form2) that is on the main form (main Form
called Form1)

Hope someone can help with this keep coming up against sub form
problems.

Nov 12 '07 #1
1 2986
rkc
feeman wrote:
I have a form in access 2000 with a combo box containing names, this
is linked to a sub form by the name index. on the sub form is a
button that when pressed automatically enters the date into the date
field. Now my problem is that when someone comes in and finds their
name and presses the sign in button it is no longer visible so they
can not sign in more than once that day.

My trouble is that i can nor remember how to use the button on the sub
form for the life of me, and it would be easier to ask the question
rather than wait for it to come back.

on the combo box i have an afterupdate function

me.(need the bit that selects the button on the sub form).visible =
True

And on the sign in btn i have the following code.

me.date = Now()
docmd.gotocontrol (i need to now the bit that switches the control to
the combo on the main form)
me.sign_in_btn.visible = false

could someone help with the blanks or explain how you activate the sub
form on a main form ie

me.text1 = now()

puts the date in the text 1 box on the current form you are on,

but what is the code to put the date in a date text field on a sub
form (sub form called form2) that is on the main form (main Form
called Form1)
The controls on a form in a subform control can be referenced
using the Controls collection of the subform control.

So a command button named Command0 on the form in a subform control
can be referenced from the main form as:

Me.SubFormControlName.Controls("Command0").Visible = True
To return to the combobox on the main form from the command button
click event on the form in the subform control:

Me.Parent.Controls("Combo0").SetFocus
Nov 13 '07 #2

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

Similar topics

4
by: karenmiddleol | last post by:
I have the following form the user enters the From and to period and presses the Submit button and the form fields are cleared once the submit button is pressed. Is there a way I can keep the...
5
by: Lyn | last post by:
Hi, I have a form which contains a number of subforms in different pages of a tab control. In the detail section of each subform, I list records related to the main form record, but from...
3
by: Susan Bricker | last post by:
Greetings. I have three forms that are open at the same time. They are related and cascading. The first form (frmEventAdd) is the anchor. Each event can have many Trials. The second form is...
4
by: Confused White Guy | last post by:
I have a C# winforms app in which I am calling a method on a different thread, using the Thread.Start() method. The method that is being executed on the new thread attempts to make a button visible...
16
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
1
by: jodyblau | last post by:
I have a form that is in Continuous form. In each record there is a button next to the a date box. When the button is pushed, the calendar control is set to visible (rather than in a seperate pop...
5
by: dgardner | last post by:
This one has me stumped and I hope someone can help. I have a form with a button on it. When I click the button, I want a label named lblWait to be visible. (When the form opens, the label is...
1
by: Geoffrey | last post by:
Hello, On a form, I place a buton with an OnClick event. No problem. I set the visible propperty of this button to false. And reset it so true again, the event isn't fired ans my app same to...
8
by: Dan | last post by:
Hi, i experimented with postback and viewstate. With this code, there are 2 dropdownlists created, one visible and with AutoPostBack true, the other not visible and no AutoPostBack, and one...
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: 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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.