Crookshanks
Technical User
Hello there,
Iam populating a listbox on a form with an SQL statement like this (DbName is a variable name for the BE-database).
SQL(2) = "SELECT tbl_Batch.IdBatch, tbl_Batch.Type, tbl_Batch.[NAV/Unit], tbl_Batch.Units, tbl_Batch.UserEntry, tbl_Participants.Name, tbl_Batch.EntryDate " & _
"FROM tbl_Participants INNER JOIN tbl_Batch ON tbl_Participants.IdPar = tbl_Batch.IdPar " & _
"IN '" & DbData & "';"
The listbox is populated with:
listbox.rowsourcetype = "Table/Query"
listbox.rowsrouce = SQL
and this work perfectly fine until I change a record which is part of the query. After that I perform a requery of the listbox but the changes (written with rs.update) are not reflected in the listbox afterwards. I also tried the .repaint on the form.
After a next call of the form (and the listbox within) the query is updated. Why is this not the case immediatly? Anybody who met the same problem or recognizes this in some way. Any help appreciated!
Kind regards,
Iam populating a listbox on a form with an SQL statement like this (DbName is a variable name for the BE-database).
SQL(2) = "SELECT tbl_Batch.IdBatch, tbl_Batch.Type, tbl_Batch.[NAV/Unit], tbl_Batch.Units, tbl_Batch.UserEntry, tbl_Participants.Name, tbl_Batch.EntryDate " & _
"FROM tbl_Participants INNER JOIN tbl_Batch ON tbl_Participants.IdPar = tbl_Batch.IdPar " & _
"IN '" & DbData & "';"
The listbox is populated with:
listbox.rowsourcetype = "Table/Query"
listbox.rowsrouce = SQL
and this work perfectly fine until I change a record which is part of the query. After that I perform a requery of the listbox but the changes (written with rs.update) are not reflected in the listbox afterwards. I also tried the .repaint on the form.
After a next call of the form (and the listbox within) the query is updated. Why is this not the case immediatly? Anybody who met the same problem or recognizes this in some way. Any help appreciated!
Kind regards,