>I know that this has been discussed here before, but those posting the
> original question never seemed to follow though when asked for further
[quoted text clipped - 33 lines]
> read-only". I have no real idea what is going on here, so can anybody
> help?
I'm not overly familiar with ADO, but it sounds to me like your query might
be non-updatable. If you create a query using the same SQL code
(substituting some value for the student id), is the query updatable? If
not, you may need to re-think your design. Instead of a "pop-up" Classes
form, can you imbed the Classes form into the Students form as a subform?
Then there whould be no need to use a joined query; just set the subform
control's Link Master and Link Child fields to create the link between your
main form and subform. Then all classes will be automatically displayed when
a student record is displayed.
If the query itself is updatable, then I would check the Allow Edits
property of the Classes form. Maybe that property got set to No somehow.
HTH,
Carl Rapson
boyratchet - 04 Mar 2008 10:44 GMT
There is already a subform that shows only certain fields, which I had set so
that it wouldn't be updateable. I changed that, but as I still needed access
to other data on the Classes form, I simply created a routine that constructs
a WHERE clause and uses it as a filter when opening the form with the DoCmd
object.
Set rs = Forms![Students]![Students Subform].Form.RecordsetClone
rs.MoveFirst
strSQL = "ClassID IN ("
For i = 1 To rs.RecordCount
strSQL = strSQL & rs.Fields("ClassID")
If i <> rs.RecordCount Then
strSQL = strSQL & ", "
rs.MoveNext
Else
strSQL = strSQL & ")"
End If
Next i
DoCmd.OpenForm "Classes", acNormal, , strSQL
This seems to work.
>>I know that this has been discussed here before, but those posting the
>> original question never seemed to follow though when asked for further
[quoted text clipped - 18 lines]
>
>Carl Rapson