Trouble with VB script on a Form (1 Viewer)

barien75

New member
Local time
Yesterday, 16:48
Joined
Nov 18, 2010
Messages
2
For some reason when run this I get an error. It seems to be when it hits the rounding function as when I comment it out it works fine. Any ideas what I am doing wrong?


error.GIF
 

jdraw

Super Moderator
Staff member
Local time
Yesterday, 19:48
Joined
Jan 23, 2006
Messages
15,379
Try
SqFtR= Round(SqFt, 4)
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 19:48
Joined
Feb 19, 2002
Messages
43,293
[4 as Long] is undefined
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 19:48
Joined
Feb 19, 2002
Messages
43,293
Just FYI - VB Script is different from VBA. In Access and the other Office products, the internal language is VBA. VBA is an embedded language and is customized with the objects of the application it is intended to support. VB Script is more like a batch language used outside of Office products.
 

Users who are viewing this thread

Top Bottom