hi,
i've got a film rental database., with a film table and form.
i've got a checkbox in the form called 'available'.
i;ve got a lblOnRent underneath. i just want it to say the film is on rent
or not, when i go though the records, depending on whether the check box is
ticked or not.
i;ve got this so far, but dont know wjere to put it;
If Availabe = True Then
lblOnRent = "This film is not available, it is out on rent."
Else
lblOnRent = "This film is available."
End If
End Sub
TIA.
dev 6 1200
DP wrote: hi,
i've got a film rental database., with a film table and form.
i've got a checkbox in the form called 'available'. i;ve got a lblOnRent underneath. i just want it to say the film is on rent or not, when i go though the records, depending on whether the check box is ticked or not.
i;ve got this so far, but dont know wjere to put it;
If Availabe = True Then lblOnRent = "This film is not available, it is out on rent." Else
lblOnRent = "This film is available." End If End Sub
TIA.
dev
For myself, I'd keep the Available checkbox hidden and display a message
since it appears your yes/no field would not be updated on this form.
However, here's what your code could look like
If Available Then
lblOnRent.Caption = "This film is out on rent."
Else
lblOnRent.Caption = "This film is available."
End If
Reading the above, the captions seem reversed. I guess it's the way the
tick is set.
sorry, its not a field. its a checkbox.
i want it to display 'film is out on rent' in lblOnRent, when the checkbox
is not ticked.
and diapllay 'the film is available' when the box is ticked. ,
the code u gave me dont work. i'm more confused now, dont u have to say
whether it is ticked or not?
thanx
dev
"salad" <oi*@vinegar.com> wrote in message
news:g%******************@newsread3.news.atl.earth link.net... DP wrote:
hi,
i've got a film rental database., with a film table and form.
i've got a checkbox in the form called 'available'. i;ve got a lblOnRent underneath. i just want it to say the film is on
rent or not, when i go though the records, depending on whether the check box
is ticked or not.
i;ve got this so far, but dont know wjere to put it;
If Availabe = True Then lblOnRent = "This film is not available, it is out on rent." Else
lblOnRent = "This film is available." End If End Sub
TIA.
dev
For myself, I'd keep the Available checkbox hidden and display a message since it appears your yes/no field would not be updated on this form. However, here's what your code could look like If Available Then lblOnRent.Caption = "This film is out on rent." Else lblOnRent.Caption = "This film is available." End If
Reading the above, the captions seem reversed. I guess it's the way the tick is set.
hi,
this is wat i've got. ;
Private Sub CheckStatus()
If Available = True Then
lblOnRent = "This film is out on rent."
Else
lblOnRent = "This film is available."
End If
End Sub
and i call it when i click the next/previous button and load part.
the problem is, when i start the form, it says it says the films is
available, but it isnt.
how can i sort this little problem out.
dev
"DP" <DP@hotmail.com> wrote in message
news:XM*******************@newsfe2-gui.ntli.net... sorry, its not a field. its a checkbox.
i want it to display 'film is out on rent' in lblOnRent, when the checkbox is not ticked. and diapllay 'the film is available' when the box is ticked. , the code u gave me dont work. i'm more confused now, dont u have to say whether it is ticked or not?
thanx
dev
"salad" <oi*@vinegar.com> wrote in message news:g%******************@newsread3.news.atl.earth link.net... DP wrote:
hi,
i've got a film rental database., with a film table and form.
i've got a checkbox in the form called 'available'. i;ve got a lblOnRent underneath. i just want it to say the film is on rent or not, when i go though the records, depending on whether the check
box is ticked or not.
i;ve got this so far, but dont know wjere to put it;
If Availabe = True Then lblOnRent = "This film is not available, it is out on rent." Else
lblOnRent = "This film is available." End If End Sub
TIA.
dev
For myself, I'd keep the Available checkbox hidden and display a message since it appears your yes/no field would not be updated on this form. However, here's what your code could look like If Available Then lblOnRent.Caption = "This film is out on rent." Else lblOnRent.Caption = "This film is available." End If
Reading the above, the captions seem reversed. I guess it's the way the tick is set.
DP wrote: hi,
this is wat i've got. ;
Private Sub CheckStatus() If Available = True Then lblOnRent = "This film is out on rent." Else lblOnRent = "This film is available." End If End Sub
Since you do not understand the advice given to you, you may be in over
your head. Perhaps you need a programmer to get you over the hump. and i call it when i click the next/previous button and load part.
the problem is, when i start the form, it says it says the films is available, but it isnt.
how can i sort this little problem out. dev
"DP" <DP@hotmail.com> wrote in message news:XM*******************@newsfe2-gui.ntli.net...
sorry, its not a field. its a checkbox.
i want it to display 'film is out on rent' in lblOnRent, when the checkbox is not ticked. and diapllay 'the film is available' when the box is ticked. , the code u gave me dont work. i'm more confused now, dont u have to say whether it is ticked or not?
thanx
dev
"salad" <oi*@vinegar.com> wrote in message news:g%******************@newsread3.news.atl.ear thlink.net...
DP wrote:
hi,
i've got a film rental database., with a film table and form.
i've got a checkbox in the form called 'available'. i;ve got a lblOnRent underneath. i just want it to say the film is on
rent
or not, when i go though the records, depending on whether the check
box
is
ticked or not.
i;ve got this so far, but dont know wjere to put it;
If Availabe = True Then lblOnRent = "This film is not available, it is out on rent." Else
lblOnRent = "This film is available." End If End Sub
TIA.
dev
For myself, I'd keep the Available checkbox hidden and display a message since it appears your yes/no field would not be updated on this form. However, here's what your code could look like If Available Then lblOnRent.Caption = "This film is out on rent." Else lblOnRent.Caption = "This film is available." End If
Reading the above, the captions seem reversed. I guess it's the way the tick is set.
DP wrote in message <2w*******************@newsfe6-win.ntli.net> : hi,
this is wat i've got. ;
Private Sub CheckStatus() If Available = True Then lblOnRent = "This film is out on rent." Else lblOnRent = "This film is available." End If End Sub
and i call it when i click the next/previous button and load part.
the problem is, when i start the form, it says it says the films is available, but it isnt.
how can i sort this little problem out. dev
"DP" <DP@hotmail.com> wrote in message news:XM*******************@newsfe2-gui.ntli.net... sorry, its not a field. its a checkbox.
i want it to display 'film is out on rent' in lblOnRent, when the checkbox is not ticked. and diapllay 'the film is available' when the box is ticked. , the code u gave me dont work. i'm more confused now, dont u have to say whether it is ticked or not?
thanx
dev
"salad" <oi*@vinegar.com> wrote in message news:g%******************@newsread3.news.atl.earth link.net... DP wrote:
hi,
i've got a film rental database., with a film table and form.
i've got a checkbox in the form called 'available'. i;ve got a lblOnRent underneath. i just want it to say the film is on rent or not, when i go though the records, depending on whether the check box is ticked or not.
i;ve got this so far, but dont know wjere to put it;
If Availabe = True Then lblOnRent = "This film is not available, it is out on rent." Else
lblOnRent = "This film is available." End If End Sub
TIA.
dev
For myself, I'd keep the Available checkbox hidden and display a message since it appears your yes/no field would not be updated on this form. However, here's what your code could look like If Available Then lblOnRent.Caption = "This film is out on rent." Else lblOnRent.Caption = "This film is available." End If
Reading the above, the captions seem reversed. I guess it's the way the tick is set.
I'm kind of assuming I'm helping with a school assignement, true?
Try calling it from the on current event of the form, in addition to
the after update event of the control, and see if that helps.
--
Roy-Vidar
thanx for the help, its working now. i was just confused on where to run the
code.
Dev
"RoyVidar" <ro*************@yahoo.no> wrote in message
news:mn***********************@yahoo.no... DP wrote in message <2w*******************@newsfe6-win.ntli.net> : hi,
this is wat i've got. ;
Private Sub CheckStatus() If Available = True Then lblOnRent = "This film is out on rent." Else lblOnRent = "This film is available." End If End Sub
and i call it when i click the next/previous button and load part.
the problem is, when i start the form, it says it says the films is available, but it isnt.
how can i sort this little problem out. dev
"DP" <DP@hotmail.com> wrote in message news:XM*******************@newsfe2-gui.ntli.net... sorry, its not a field. its a checkbox.
i want it to display 'film is out on rent' in lblOnRent, when the
checkbox is not ticked. and diapllay 'the film is available' when the box is ticked. , the code u gave me dont work. i'm more confused now, dont u have to say whether it is ticked or not?
thanx
dev
"salad" <oi*@vinegar.com> wrote in message news:g%******************@newsread3.news.atl.earth link.net... DP wrote:
> hi, > > i've got a film rental database., with a film table and form. > > i've got a checkbox in the form called 'available'. > i;ve got a lblOnRent underneath. i just want it to say the film is on
rent> or not, when i go though the records, depending on whether the check
box> is ticked or not. > > i;ve got this so far, but dont know wjere to put it; > > If Availabe = True Then > lblOnRent = "This film is not available, it is out on rent." > Else > > lblOnRent = "This film is available." > End If > End Sub > > TIA. > > dev
For myself, I'd keep the Available checkbox hidden and display a
message since it appears your yes/no field would not be updated on this form. However, here's what your code could look like If Available Then lblOnRent.Caption = "This film is out on rent." Else lblOnRent.Caption = "This film is available." End If
Reading the above, the captions seem reversed. I guess it's the way
the tick is set.
I'm kind of assuming I'm helping with a school assignement, true?
Try calling it from the on current event of the form, in addition to the after update event of the control, and see if that helps.
-- Roy-Vidar
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mohammed Mazid |
last post by:
Hi folks!
Can anyone please help me with this?
I am developing a Quiz program but I am stuck with "multiple answers".
Basically I need some sort of code that would select multiple answers...
|
by: Jan van Veldhuizen |
last post by:
The UPDATE table FROM syntax is not supported by Oracle.
I am looking for a syntax that is understood by both Oracle and SqlServer.
Example:
Table1:
id name city ...
|
by: aaj |
last post by:
Hi all
I have a continuous bound form and on each record is a tick box.
The user ticks the boxes and these boxes define the batch. for future
operations
before they leave the page I count...
|
by: Karl Roes |
last post by:
I'm still having trouble posting follow-ups. :-(
"Unable to retrieve message
7cc66112.0501041919.3a6628b4@posting.google.com"
Now Turtle wrote "You'll need an extra field in the table...
|
by: DP |
last post by:
hi.,
i've got 3 tables, customer, film and filmrental.
i've got a customer form, with a sub form at the bottom, which is a film
rental subform.
i've created an update query, which when a...
|
by: David - Australia |
last post by:
G'day from Australia,
I'm hoping some bright spark may be able to help me with this one. I'm
sure that it can be done, I've just hit a wall with it. So I'm opening
it up.
I'm storing student...
|
by: Zytan |
last post by:
I have public methods in a form. The main form calls them, to update
that form's display. This form is like a real-time view of data that
is changing.
But, the form may not exist (it is...
|
by: MikeSA |
last post by:
Hi
Probably an old question....
I'm trying to run an update query which needs to update files in a table if a check box is ticked.
Please advise.
Thanks!
MikeSA
|
by: Euge |
last post by:
Hi,
I really hope someone will be able to help me with this one as I am sure im just missing something simple.
I have an unbound form which has 20 yes/no unbound check boxes. The purpose of...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |