variable declaration

  • Thread starter Thread starter seeker
  • Start date Start date
S

seeker

I have this public declaration in a module

Public intcount as integer = 10

It gives me a expected end of statement error. Need wisdom.
 
A bit tough to diagnose without a bit more context...

More info, please.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
By the way, I don't believe you can set the value at the same time you 'dim'
the variable...

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
seeker said:
I have this public declaration in a module

Public intcount as integer = 10

It gives me a expected end of statement error. Need wisdom.

VBA != VB.Net

Try
Public intcount as integer: intcount = 10
 
Back
Top