Hi – I am relatively new to Access and am using Access 2010 macros in my database. The db works well [it seems?] when running on my ‘full’ version of Access 2010.
However an error occurs when I attempt to run the same db on either:
a) A PC running Access RunTime , or
b) When the db is compiled into an executable – i.e. make ACCDE [Through ‘Save & Publish’]
The error message when running (a) or ( b) is “settempvar is not available etc..”
My theory is it is the same error cause? May be (a) or ( b) are the same in that the software is converting my macro code to vb and it is the vb that is in error - but please feel free put me right on this ?
To test my theory I used the Access provided ‘Macro to vb converter’ to convert one of my Macros to vb and found that this new vb code errors, whereas the Macro does not?
I think I have narrowed one of the problems down to where I assign a TempVar to equal an existing TempVar. – see example attached- The converted VB is in error – see message in the attached.
I hope the attached example is sufficient for you to provide some advice and guidance which would be very gratefully received. Many thanks in anticipation..
Rgds David
NB Surely it will not be an error in the Microsoft provided ‘converter’ ?
However an error occurs when I attempt to run the same db on either:
a) A PC running Access RunTime , or
b) When the db is compiled into an executable – i.e. make ACCDE [Through ‘Save & Publish’]
The error message when running (a) or ( b) is “settempvar is not available etc..”
My theory is it is the same error cause? May be (a) or ( b) are the same in that the software is converting my macro code to vb and it is the vb that is in error - but please feel free put me right on this ?
To test my theory I used the Access provided ‘Macro to vb converter’ to convert one of my Macros to vb and found that this new vb code errors, whereas the Macro does not?
I think I have narrowed one of the problems down to where I assign a TempVar to equal an existing TempVar. – see example attached- The converted VB is in error – see message in the attached.
I hope the attached example is sufficient for you to provide some advice and guidance which would be very gratefully received. Many thanks in anticipation..
Rgds David
NB Surely it will not be an error in the Microsoft provided ‘converter’ ?