By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,044 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,044 IT Pros & Developers. It's quick & easy.

Error message by Mid([FieldName];3;2)

P: n/a
Dear reader,

If there is now broken reference in the VBA library and I run the code
Mid([FieldName];3;2) an error massage can by pop's up "Not a valid
instruction".

After a reconnection of the library, which was not indicated as broken, the
command Mid([FieldName];3;2) works correct.

It looks like a check on broken references is not enough.

Who knows how I can avoid this errors in the Left(), Mid() en Right()
instruction.

Thanks for any help,

Simon
Oct 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Simon wrote:
Dear reader,

If there is now broken reference in the VBA library and I run the code
Mid([FieldName];3;2) an error massage can by pop's up "Not a valid
instruction".
what version of Access are you using?
the arguments should be separated by commas, not semi-colons.

Mid$([Fieldnme],3,2)

Oct 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.