Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBA problem
Message
 
To
09/12/1998 17:43:59
Travis Clark
Journal Record Publishing Co
Oklahoma City, Oklahoma, United States
General information
Forum:
Microsoft Office
Category:
Access
Title:
Miscellaneous
Thread ID:
00165835
Message ID:
00165971
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform