K
Ken
I have sql:
SELECT * FROM Orders WHERE ((Orders.Paragraph)=" & Chr(34) &
[Forms]![OrdersUnbound]![Paragraph] & Chr(34) & "));"
when the text block is empty this evaluates to "". which isn't returning
any results
In the form on lost focus for the text box I evaluate the contents to make
sure the user incloses the input in parenthesis, if nothing is entered, then
I set the box to null.
I made this WHERE clause short for this message, but the Idea is I am
comparing 4 text blocks for duplicates. They can contain basically any info
including null, as long as it isn't the same set twice (like having 4 primary
keys).
If I put this in a query and include "OR Orders.Paragraph IsNull", I get
all the matches for Null Paragraph, not necessarily matching the other three.
SELECT * FROM Orders WHERE ((Orders.Paragraph)=" & Chr(34) &
[Forms]![OrdersUnbound]![Paragraph] & Chr(34) & "));"
when the text block is empty this evaluates to "". which isn't returning
any results
In the form on lost focus for the text box I evaluate the contents to make
sure the user incloses the input in parenthesis, if nothing is entered, then
I set the box to null.
I made this WHERE clause short for this message, but the Idea is I am
comparing 4 text blocks for duplicates. They can contain basically any info
including null, as long as it isn't the same set twice (like having 4 primary
keys).
If I put this in a query and include "OR Orders.Paragraph IsNull", I get
all the matches for Null Paragraph, not necessarily matching the other three.