invalid use of null

Англо-русский перевод INVAL >

недопустимое действие; указание на пустой объект

Computer English-Russian dictionary. Англо-Русский компьютерный словарь. 2012

Еще значения слова и перевод INVALID USE OF NULL с английского на русский язык в англо-русских словарях и с русского на английский язык в русско-английских словарях.

More meanings of this word and English-Russian, Russian-English translations for the word «INVALID USE OF NULL» in dictionaries.

Null — это подтип Variant, который определяет элемент, не содержащий допустимых данных. Null is a Variant subtype used to indicate that a data item contains no valid data. Эта ошибка имеет следующие причину и решение: This error has the following cause and solution:

Вы пытаетесь получить значение переменой Variant или выражения, которые имеют значение Null. You are trying to obtain the value of a Variant variable or an expression that is Null. Например: For example:

Убедитесь, что переменная содержит допустимое значение. Make sure the variable contains a valid value.

Для получения дополнительной информации выберите необходимый элемент и нажмите клавишу F1 (для Windows) или HELP (для Macintosh). For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

Поддержка и обратная связь Support and feedback

Есть вопросы или отзывы, касающиеся Office VBA или этой статьи? Have questions or feedback about Office VBA or this documentation? Руководство по другим способам получения поддержки и отправки отзывов см. в статье Поддержка Office VBA и обратная связь. Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.

I have now got rid of the overflow on this query by forcing to a long but now I get

Error 94: Invalid Use of NULL

Can anyone tell me what the problem could be?

3 Answers 3

One or more of the column values is NULL , and this can not be converted to an integer so is causing this error. Try wrapping the value in the Nz function e.g. Nz([My_value],0)

This will force it to return 0 if a NULL is found.

One of your Columns has the value NULL . Then the result from your calculation would be NULL and you tried to convert to an Integer which would yield the error you are seeing.

Try this adjustment to your SQL Query:

Impossible to say for sure without more information, but is TotaalPrijs or Aantal NULL in your data?

Not the answer you’re looking for? Browse other questions tagged sql ms-access debugging or ask your own question.

Linked

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 4.0 with attribution required. rev 2019.11.15.35459

Оцените статью