A
Allen_N
This seems ridiculous to me, but I can't figure out how to make the a query
window refresh itself when the underlying SQL is changed in code. (The SQL
simply changes the record number.) I can manually refresh it by clicking
Design View and then Datasheet View, but that is obviously cumbersome.
For iBaseKit = 1 To nKits ' must compare to all kits before and after
this record
strSQL = "SELECT ID AS bID, KitGroup1 AS bKitGrp, KitItem AS bKitPN
" _
& " FROM [All Kit Components]" _
& " WHERE ID = " & Format(iBaseKit)
qryAllComps.SQL = strSQL
Stop
Next iBaseKit
Thanks!
window refresh itself when the underlying SQL is changed in code. (The SQL
simply changes the record number.) I can manually refresh it by clicking
Design View and then Datasheet View, but that is obviously cumbersome.
For iBaseKit = 1 To nKits ' must compare to all kits before and after
this record
strSQL = "SELECT ID AS bID, KitGroup1 AS bKitGrp, KitItem AS bKitPN
" _
& " FROM [All Kit Components]" _
& " WHERE ID = " & Format(iBaseKit)
qryAllComps.SQL = strSQL
Stop
Next iBaseKit
Thanks!