Article ID: 104459
Article Last Modified on 1/8/2003
The output of a query that uses Distinct is not updatable and doesn't reflect subsequent changes made by other users. Therefore, when you use the Distinct predicate in a query, you are prevented from trying to update your records.
Control Name Property New Value Comment
------------------------------------------------------------------------
Command1 Caption "Set Up Distinct Predicate"
Command2 Caption "Press for Update"
Data1 DatabaseName BIBLIO.MDB Provide the
full path to
this file,
which should
be in C:\VB
Data1 RecordSource Authors
Text1 DataSource Data1
Text1 DataField Author
Sub Command1_Click ()
'* Enter the following two lines of code as one, single line:
data1.RecordSource = "Select DISTINCT Author From authors
where author > 'a'"
data1.Refresh
End Sub
Sub Command2_Click ()
data1.Recordset.Update
End Sub
Additional query words: 3.00
Keywords: kbprb KB104459