Finding the primary key using VBA
- From: mark_aok <mark_aok@xxxxxxxxxxx>
- Date: Wed, 18 Jul 2007 19:10:36 -0000
Hi all,
I need to determine the name of the primary key in a table, but this
must be done using VBA.
I was looking for something like,
for each field in someRecordset.fields
if field.type="primaryKey" then
do something
end if
Next
Does anyone know if a property exists for primary key??
Thanks
Mark
.
- Follow-Ups:
- Re: Finding the primary key using VBA
- From: raskew via AccessMonster.com
- Re: Finding the primary key using VBA
- From: King Ron
- Re: Finding the primary key using VBA
- From: mark_aok
- Re: Finding the primary key using VBA
- From: Tom van Stiphout
- Re: Finding the primary key using VBA
- Prev by Date: Re: Cannot cancel from delete
- Next by Date: Re: Why does splitting a mdb make it slower?
- Previous by thread: Assign table rows
- Next by thread: Re: Finding the primary key using VBA
- Index(es):