A couple of points:
---
"Is Not Null" -- in quotes would be a literal string.
Is Not NULL -- is an SQL expression. It is not used with "="
Reference to SQL and examples
----
Is NOTES field is a MEMO type?
you can't query memo fields.
This statement is not true. Perhaps ranman256 meant something else.
Here is an example of querying a memo field.
The TXT field of table tbl_Spl_LCL_Std_EstProfileEng is Memo data type. The length of the TXT value is 1595.
The query selects the last 20 characters of TXT for ESTBLMT_NO 123456197946 but also shows the entire TXT field.
The table structure is:
Code:
table_name field_name field_description data_type
tbl_Spl_LCL_Std_EstProfileEng RecID Record Identifier Long
tbl_Spl_LCL_Std_EstProfileEng Est_Name Establishment Name Text
tbl_Spl_LCL_Std_EstProfileEng ESTBLMT_NO Establishment Number Text
tbl_Spl_LCL_Std_EstProfileEng TXT_TYP_CD Text Type Identifier Text
tbl_Spl_LCL_Std_EstProfileEng TXT Description text (memo) Memo
Here is the query sql:
Code:
SELECT tbl_Spl_LCL_Std_EstProfileEng.ESTBLMT_NO
, Len([TXT]) AS LENGTH
, Right([txt],20) AS Last20
, tbl_Spl_LCL_Std_EstProfileEng.txt
FROM tbl_Spl_LCL_Std_EstProfileEng
WHERE
(((tbl_Spl_LCL_Std_EstProfileEng.ESTBLMT_NO)="123456197946"));
Attached is a picture(jpg) of the output of the query.