setting combo.rowsource fires subform.current() event

It looks to me this is really unintended, unnecessary (and unwanted) behaviour from MsAccess
I think there is something else going on, because I tried to recreate this on other forms and was not able. I do not believe this is default, but cannot answer why this is happening.
 
I can easily reproduce it now. Did you try my testdb? It's built from scratch so no leftovers from anything and you don't need SQL linked tables, it the same with local Access tables
 
I can easily reproduce it now. Did you try my testdb? It's built from scratch so no leftovers from anything and you don't need SQL linked tables, it the same with local Access tables
I tried to do it with my own database and forms and was unable. I should try importing your tables and build my own forms to see if I can replicate. Maybe it is some kind of corruption because I do not believe this is default behaviour.
 
No, because my problem is already solved just by using a parameterquery (based on the SQL view) as the mainform recordsource; with that the subform does not requery anymore when I setv any of the combo's

(select * from * where field = forms!form!ID)

Your suggestion might solve the problem also, but it's much more work at this point. If I would run in a situation where replacing the mainform recordsource would not be possible I will surely try that.

@MajP I can easily reproduce the problem, in my testdatabase (has nothing from the original FE) there is nothing special (the tables a just simple tables with an ID field and one or two extra mockup fields
Don't ask me why, apperently it's the way access works in this case... I think it is some unintentional behaviour for which there is not reason at all it should work this way.
 
Last edited:
@MajP I can easily reproduce the problem, in my testdatabase (has nothing from the original FE) there is nothing special (the tables a just simple tables with an ID field and one or two extra mockup fields
Don't ask me why, apperently it's the way access works in this case... I think it is some unintentional behaviour for which there is not reason at all it should work this way.
As I said, I see it in your database and can replicate it in your database. If I build a database or use one of my existing databases then I cannot replicate that behavior. So I do not think this is a default behavior but only under certain conditions. Maybe there is some obscure setting in Access that I do not know that can cause this.
 

Users who are viewing this thread

Back
Top Bottom