Learn how to a build a cloud-first strategyRegister Now

x
Solved

# Move Zero if value is null or spaces

Posted on 2006-11-16
Medium Priority
229 Views
Hi: Can any one please tell me how do i move zero if value is equals to space or null?

strAmountofPPVDispute

Thanks.
0
Question by:mustish1

LVL 61

Assisted Solution

mbizup earned 400 total points
ID: 17957238
What do you mean by "Move Zero"?
0

LVL 66

Accepted Solution

Jim Horn earned 1200 total points
ID: 17957240
Define 'move zero'.

If Nz(YourValue, "") = "" OR Nz(YourValue, 0) = 0 then
'do something here
end if
0

LVL 65

Assisted Solution

ID: 17957261
what do u mean zero, give it a value of zero?

u could do this

If IsNull(strAmountofPPVDispute) = True Then
strAmountofPPVDispute = 0
ElseIf Len(Trim\$(strAmountofPPVDispute)) = 0 Then
strAmountofPPVDispute = 0
End If
0

LVL 44

Expert Comment

ID: 17957341
Looks like we'll never know!
0

LVL 44

Expert Comment

ID: 17972504
Does anyone see any value in leaving this question here.  Unless mushish1 comes back and 'explains' I think it should be deleted.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
###### Suggested Courses
Course of the Month21 days, 7 hours left to enroll