?
Solved

How to add check box details to a database

Posted on 2003-02-27
6
Medium Priority
?
140 Views
Last Modified: 2010-05-01
In a VB from I have a problem with adding a check box field to a database.

What is the value to put in where the question symbols are displayed in the code below (i.e. if it was a text box it would be frmNewMareRecord.txtFoal.Text = ""):

frmMareRecordProcessingActions.datMare.Recordset.AddNew

frmNewMareRecord.chkFoal.??????? = ""
frmNewMareRecord.chkShoes.?????? = ""
0
Comment
Question by:willwatters
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Expert Comment

by:Jacamar
ID: 8035736
vbChecked, or vbUnchecked
0
 
LVL 2

Expert Comment

by:Jacamar
ID: 8035740
sorry.........it should be
.Value
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 8035904
and the Value should be either VBChecked or vbUnChecked.

vbChecked has the numeric value 0, vbUnchecked has the numeric value 1.

in the Database, the field shhould be defined (in Access) as a Yes/No field (Yes is equivalent to Checked, No to UnChecked)

AW

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 40 total points
ID: 8036280
Arthur,

>>vbChecked has the numeric value 0, vbUnchecked has the numeric value 1.<<
I suspect this was just typo, but vbChecked = 1 and vbUnchecked = 0.  In adition there is a third value vbGrayed = 2.

Anthony
0
 

Author Comment

by:willwatters
ID: 8124377
How can I store the following query as a variable (the data contorl is datEmployee):

"Select [EmployeeNumber] from EMPLOYEE where [Position] = Customer Assistant"
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 8255293
willwatters,

That was very "generous" of you, but I suspect that Arthur or Jacamar was the one who merited the points for your question. One thing for sure, at least you are consistent.  For the record: Last 10 Grades Given B A B B C C  

Arthur, Jacamar
Let me know if you would like me to post some points for you.

Anthony
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question