|
-
Sep 28th, 2000, 05:19 AM
#1
Thread Starter
Fanatic Member
With SQL database and using ADO, is there anyway to access in VB, the default values of particular fields in the database?
The field object of a recordset doesn't seem to have a 'defaultvalue' property and ADOX seems to have the same limitation.
Any ideas attall would be appreciated?
Simon.
-
Sep 28th, 2000, 06:29 AM
#2
Member
TableDef
Simonm,
It is actually straightforward. Code ....
Dim tbldefs As TableDef
Set tbldefs = dbs.TableDefs!<table name>
With tbldefs
c = .Fields(0).Size
End With
msg=msgbox(c)
___________
-
Sep 28th, 2000, 07:22 AM
#3
Thread Starter
Fanatic Member
Unfortunately...
That's not quite what I'm looking for.
Firstly, ADO doesn't have 'Tabledef' objects.
Secondly, I want the 'DEFAULT VLAUE' and not the 'SIZE' property of the field.
Thanks anyway.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|