473,473 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how do i display checkbox value from my database MS access in a visual basic 6 form?

1 New Member
i need help here. how do i display checkbox value from my database MS access in a visual basic 6 form? i hv 2 checkbox in my form, which are Available and Not Available. if the value is yes, i want to display it in Available checkbox and if no, the value will be display in Not Available one.. i did try but when i run my program, the value display in both Available and Not Available checkbox. anybody can give me an idea...??? thanks..
I have used the below code but it didn’t work.
If UCase(rst!RoomAvail) = "YES" Then
CheckBox1.Value = 1 'Available CheckBox
CheckBox2.Value = 0 'Not Availabe CheckBox
Else
CheckBox1.Value = 0 'Available CheckBox
CheckBox2.Value = 1 'Not Availabe CheckBox
End If

-------------------------------------------------
CheckBox1.Value = IIf(UCase(rst!RoomAvail) = "YES",1,0) 'Availabe CheckBox
CheckBox2.Value = IIf(UCase(rst!RoomAvail) = "NO",1,0) 'Not Availabe CheckBox
Sep 5 '11 #1
0 1435

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

Similar topics

4
by: Kurien Baker Fenn | last post by:
How to send data from an ASP form to a visual basic form? Please help
2
by: pisaac | last post by:
I am considering purchasing Visual Basic .net 2003 Standard Editon to do some development work with Web Forms and I need to know whether this edit will allow me to update an Access database (mdb)...
0
by: evlpupy | last post by:
Good Afternoon I have need of assistance for programming a visual basic form in excel. In excel I have 3 named ranges TM Agents1 Agents2 In the TM range I have 5 different names of...
1
by: Edward1 | last post by:
Hi! I am a newbie to programming, I am tryin to build a database application using visual basic .net and Ms Access, right now I am unable to update the Ms Access Database from visual basic. can...
2
by: sandipdeshmukh | last post by:
how to connect both MS Access and MS SQL database in one visual basic form
2
by: jameswambura | last post by:
hallo there, i have a database in access one table with bitmap picture. i want to access those pictures in my Visual Basic forms
1
by: jameswambura | last post by:
how to read abitmap image from access table and display in visual basic interface
0
by: laurence | last post by:
hi, i am new in vb. i am not finding the way to connect ms access database to visual basic. what i need is i need to take data from msaccess and calculation will be done in vb and the result page...
3
by: janita | last post by:
Hi i need to update a database which is connected to a form in visual basic. the entries that made in text boxes present in the form must be updated to the connected database. Can u help me with a...
0
marktang
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,...
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...
0
tracyyun
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...
1
isladogs
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.