Solved

DDL Question: How do I set the format Property of a field

Posted on 2001-09-13
7
141 Views
Last Modified: 2010-05-02
I am using ADO to create tables, fields & relationships etc., I have created a field called Archived which I created as a boolean (Yes/No). How do I then set this fields format property to TRUE/FALSE???

Any code would be a help

Thanx in advance


Mick
0
Comment
Question by:mickdoherty
7 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 6479375
Mick, is this an access database?
0
 
LVL 22

Accepted Solution

by:
CJ_S earned 100 total points
ID: 6479414
use the 0 and 1's.

regards,
CJ
0
 
LVL 27

Expert Comment

by:planocz
ID: 6479455
The field called Archived will automatically be false.
as you access the field you can change it to true if needed.

0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:mickdoherty
ID: 6479492
Tim, Yes this is an Access database!

CJ, Do you mean use 0 and 1's in my vb program.?
e.g. rs![Archived] = 1  or rs![Archived] = 0
If so... can't do that!!!

Planocz, Go back to sleep. I don't want know how to set the DefaultValue! Even if that's what your talking about???


Mick
0
 
LVL 27

Expert Comment

by:planocz
ID: 6479679
Sense I'm asleep try this code...
 
    Select Case rs![Archived]
        Case True
             rs.Update "Archived", False
        Case False
             rs.Update "Archived", True
      End Select
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7208357
Hi mickdoherty,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept CJ_S's comment(s) as an answer.

mickdoherty, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7241187
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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