Question: I want to use the VBA function in Access declared as a type of Long. I want to return an integer from 0 to 35 for a while, but I also want to be able to return empty or null or something like that most of the time. Is there any way to do this? What I tried (variable = "" or Set variable = Nothing) just causes an error. This will be used in the query and will give a value for one column. I want this column to be a Long type. If such a thing is not possible, I think thatβs all I need to know, since I already have a different but less desirable solution. Thanks for any help.
Update: Of course, right after the question, I realized that this is a good solution. If I just do Range ("independently"). Value = Range ("whatever"). A value in Excel, then it changes left justification 20 to right justification 20 when it is recognized by the pivot table as a number (although when I simply convert the cell type to a number in Excel, it is not recognized as a number in the pivot table). So, I delete the background because it is optional. I'm still curious to know if you can return some kind of space or null for the declared function. Thanks
source share