Mile-O
Back once again...
- Local time
- Today, 06:24
- Joined
- Dec 10, 2002
- Messages
- 11,305
philljp390 said:the structures need to remain as they are
One little question...why?
philljp390 said:the structures need to remain as they are
philljp390 said:I've never done a union query before, how is it done, or is there a link i could read?
BAD
Number, Text, Text, Date/Time, Yes/No
Number, Text, Date/Time, Text, Yes/No
GOOD
Number, Text, Text, Date/Time, Yes/No
Number, Text, Text, Date/Time, Yes/No
SELECT Forename, Surname FROM tblEmployees
UNION
SELECT Forename, Surname FROM tblApplicants;
philljp390 said:Could you offer a bit of info as to what this line does?
rs.Open SQL, cnn, adOpenForwardOnly, adLockReadOnly
And these:
Dim cnn As ADODB.Connection
Dim rs As New ADODB.Recordset
From this table:[Field1] Or [Field2] ='House' .......... [Field1] is compared to itself and therefore ALWAYS returns true. .......... this will always select all rows.
no matter what value you substitute for "House", including a nonexistant value, the count will be the number of rows in the table.