Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VBA problem
Message
 
À
09/12/1998 17:43:59
Travis Clark
Journal Record Publishing Co
Oklahoma City, Oklahoma, États-Unis
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Titre:
Divers
Thread ID:
00165835
Message ID:
00165971
Vues:
14
Hi,

To begin, you can have a look to Access he searching for the keyword "fields". You'll find that "fields" is the name for any table list of fields (we name that a "collection)). This collection has an attribute (named a property), Count.

So you could write a sub like this

'db is you database variable

dim db as database
set db = dbengine.databases(0) 'the current database

for i = 0 to db.tabledef("YourTable").fields.count - 1
if isnull(tabledef("YourTable").fields(i)) then
tabledef("YourTable").fields(i) = tabledef("YourTable").fields(i - 1)
'be careful to i = 0
end if
next i

See what I mean ?
Bye
VB Developer
Servilog Concept
jmb@octalfrance.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform