HI,
I am trying to work with an access 2007 database and update a website. I have a bunch of queries I need to interpret and bring them up to date. Can someone please tell me what this means:
I am new to this and found that CDbl means to convert a value to a double which still make very little sense to me even with the examples I have found. It also seems that the Left command returns a specified number of characters from the left side of a string. A Little more clear but I am still not sure what this is trying to accomplish. This is even more confusing - [tblSU]![SUNum]),[tblSU]![SUNum] If I could know what the statement is saying I hopefully would be able to see what I might be able to do moving forward. I have a bunch but this is a start.
This is an example of another one:
I know that it is saying something like evaluate this and if it is true then assign it this value. Again it is this - [tblmap].[mapelec] that is giving me the trouble.
Thanks for the help!
I am trying to work with an access 2007 database and update a website. I have a bunch of queries I need to interpret and bring them up to date. Can someone please tell me what this means:
Code:
CDbl(IIf(IsNumeric( [tblSU]![SUNum]),[tblSU]![SUNum],
Left([tblSU]![SUNum],
InStr(1,[tblSU]![SUNum],'-')-1)
)
)
I am new to this and found that CDbl means to convert a value to a double which still make very little sense to me even with the examples I have found. It also seems that the Left command returns a specified number of characters from the left side of a string. A Little more clear but I am still not sure what this is trying to accomplish. This is even more confusing - [tblSU]![SUNum]),[tblSU]![SUNum] If I could know what the statement is saying I hopefully would be able to see what I might be able to do moving forward. I have a bunch but this is a start.
This is an example of another one:
Code:
IIf([tblmap].[mapelec],'Digital Maps',IIf([tblmap].[mappaper],'Paper Maps','Other Maps'))
I know that it is saying something like evaluate this and if it is true then assign it this value. Again it is this - [tblmap].[mapelec] that is giving me the trouble.
Thanks for the help!
Last edited: