Ask a Question related to ASP Database, Design and Development.
-
mike #1
ASP Access Autonumber property
Hi, I am wondering if there is a way to retrieve wether a given column
in an Access Database is an autonumber as opposed to just an integer.
Currently I am just retreiving all of the columns from a table in a
recordset, and am able to determine the datatype of all of the
columns. Here is my example code.
Set rsExample = cnnConnection.EXECUTE("SELECT * FROM Table")
For Each cmnColumn in rsExample.Fields
if(cmnColumn.TYPE = 3) then
'This is a numeric field
'Here I would like to determine if this column is an
autonumber as opposed to a number. Both have TYPE = 3
else
'This field is non-numeric
end if
Next
Both AutoNumbers and Number return a type = 3. Is there another way
to accomplish this?
Mike Biang
Web Applications Developer
Cramer Development
mike Guest
-
#40159 [NEW]: Cannot access protected property
From: dominik dot bulaj at gmail dot com Operating system: Debian PHP version: 5.2.0 PHP Bug Type: Class/Object related Bug... -
#40159 [Opn->Fbk]: Cannot access protected property
ID: 40159 Updated by: tony2001@php.net Reported By: dominik dot bulaj at gmail dot com -Status: Open +Status: ... -
#29234 [Com]: empty($object->property) incorrect when property has access overloaded (__get)
ID: 29234 Comment by: phpbugs at thunder-2000 dot com Reported By: chrissy at codegoat dot com Status: No... -
Access to Session Object Property
Hi, I am new to ASP.net and VB.net. I need to store a class(SecurityClass) with a property ( LoggedIn as Boolean) in the Session Object (Called... -
Help Anyone?How do I access Inner Class Property
hi guys, I am having this problems too... if I inherits it from System.Web.UI.WebControl.WebControls.. it works fine.. but if I inherits it from... -
Aaron [SQL Server MVP] #2
Re: ASP Access Autonumber property
There is an IsAutoIncrement property. I just updated the last sample at
[url]http://www.aspfaq.com/2177[/url] and it might help.
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
"mike" <mbiang@rockisu.com> wrote in message
news:8d00393f.0408110914.1c54b38b@posting.google.c om...> Hi, I am wondering if there is a way to retrieve wether a given column
> in an Access Database is an autonumber as opposed to just an integer.
> Currently I am just retreiving all of the columns from a table in a
> recordset, and am able to determine the datatype of all of the
> columns. Here is my example code.
>
> Set rsExample = cnnConnection.EXECUTE("SELECT * FROM Table")
>
> For Each cmnColumn in rsExample.Fields
> if(cmnColumn.TYPE = 3) then
> 'This is a numeric field
> 'Here I would like to determine if this column is an
> autonumber as opposed to a number. Both have TYPE = 3
> else
> 'This field is non-numeric
> end if
> Next
>
> Both AutoNumbers and Number return a type = 3. Is there another way
> to accomplish this?
>
> Mike Biang
> Web Applications Developer
> Cramer Development
Aaron [SQL Server MVP] Guest



Reply With Quote

