![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? Is someone able to explain this? Vincent |
#3
| |||
| |||
|
|
The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? Is someone able to explain this? You do realize that, without criteria, the DLookup returns the value from a |
#4
| |||
| |||
|
|
Vincent wrote: The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? *Is someone able to explain this? You do realize that, without criteria, the DLookup returns the value froma random row in the domain (table) you are searching ... Given that, perhaps the PurgePeriod field in the Info table contains an empty string in the random row examined by DLookup, and the PurgePeriod in CompanyInfoMaster contains a number in the random row selected by Dlookup? -- Bob Barrows |
#5
| |||
| |||
|
|
On Jun 8, 10:42 am, "Bob Barrows" <reb01... (AT) yahoo (DOT) com> wrote: Vincent wrote: The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? Is someone able to explain this? You do realize that, without criteria, the DLookup returns the value from a random row in the domain (table) you are searching ... Given that, perhaps the PurgePeriod field in the Info table contains an empty string in the random row examined by DLookup, and the PurgePeriod in CompanyInfoMaster contains a number in the random row selected by Dlookup? Nope. There is only one row in this table. My point was: your example code is referring to two different tables. You |
#6
| |||
| |||
|
|
Vincent wrote: The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? *Is someone able to explain this? Vincent The value of a boolean (yes/no) field is either -1 (representing true) or 0 (false). Try using IsNumeric in a query and you see only -1 or 0 in the column. -- Groeten, Peterhttp://access.xps350.com --- news://freenews.netfront.net/ - complaints: n... (AT) netfront (DOT) net --- |
#7
| |||
| |||
|
|
Vincent wrote: On Jun 8, 10:42 am, "Bob Barrows" <reb01... (AT) yahoo (DOT) com> wrote: Vincent wrote: The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? Is someone able to explain this? You do realize that, without criteria, the DLookup returns the value from a random row in the domain (table) you are searching ... Given that, perhaps the PurgePeriod field in the Info table contains an empty string in the random row examined by DLookup, and the PurgePeriod in CompanyInfoMaster contains a number in the random row selected by Dlookup? Nope. *There is only one row in this table. My point was: your example code is referring to two different tables. You told us what DLookup returns from Info. What does it return from CompanyInfoMaster? -- Bob Barrows |
#8
| |||
| |||
|
|
On Jun 8, 10:06 am, XPS35 <xps... (AT) gmail (DOT) com> wrote: Vincent wrote: The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? Is someone able to explain this? Vincent The value of a boolean (yes/no) field is either -1 (representing true) or 0 (false). Try using IsNumeric in a query and you see only -1 or 0 in the column. -- Groeten, Peterhttp://access.xps350.com --- news://freenews.netfront.net/ - complaints: n... (AT) netfront (DOT) net --- The "PurgePeriod" field is an integer field. If I try using IsNumeric in a query, I see a value of 0 in the column, which would indicate false. But, why is the above scenario showing a value of true? |
#9
| |||
| |||
|
|
I have an existing table called Junk. It has some records in it. I added a field called Junk1, type number longint. I run a query and it I enter Expr1: IsNumeric([junk1]). It returns 0. If open the table, Junk1 is blank. When I run an update query to set Junk1 to 0, it of couse returns -1 when I check the numeric status. I created a new table Table1. I created 2 fields Junk and Junk1. I left the default as 0 in Junk and removed the default in Junk1. I entered 123 in Junk. Then checked Isnumeric on both fields. Junk was -1, Junk1 was 0. |
#10
| |||
| |||
|
|
On Jun 8, 10:06 am, XPS35 <xps... (AT) gmail (DOT) com> wrote: Vincent wrote: The following was ran from the immediate window of Access 2007: ?DLookup("PurgePeriod", "Info") = "" True ?IsNumeric("") False ?IsNumeric(DLookup("PurgePeriod", "CompanyInfoMaster")) True Huh? Is someone able to explain this? Vincent The value of a boolean (yes/no) field is either -1 (representing true) or 0 (false). Try using IsNumeric in a query and you see only -1 or 0 in the column. -- Groeten, Peterhttp://access.xps350.com --- news://freenews.netfront.net/ - complaints: n... (AT) netfront (DOT) net --- The "PurgePeriod" field is an integer field. If I try using IsNumeric in a query, I see a value of 0 in the column, which would indicate false. But, why is the above scenario showing a value of true? |
![]() |
| Thread Tools | |
| Display Modes | |
| |