PC Review


Reply
Thread Tools Rate Thread

Buggy selection in form.

 
 
H. Martins
Guest
Posts: n/a
 
      14th Jul 2010
Hi.

In a form header I have three ComboBoxes (CB).

cmbbxTurmaVazia and cmbbxDisciplina queries are straight including all
registers of two different tables.

cmbbxNSerieAula query works over a third table but has in mind the
result of cmbbxTurmaVazia and cmbbxDisciplina as:

SELECT tblTurmaDisciplinaAula.lintTurmaDisciplinaAulaKMaster,
tblTurmaDisciplinaAula.lintTurmaVaziaBKSlave,
tblTurmaDisciplinaAula.lintDisciplinaKSlave,
tblTurmaDisciplinaAula.lintNAulaManual,
tblTurmaDisciplinaAula.dateDataAula
FROM tblTurmaDisciplinaAula
WHERE (((tblTurmaDisciplinaAula.lintTurmaVaziaBKSlave)=[forms].
[frmSala].[cmbbxTurmaVazia]) AND
((tblTurmaDisciplinaAula.lintDisciplinaKSlave)=[forms].[frmSala].
[cmbbxDisciplina]))
ORDER BY tblTurmaDisciplinaAula.lintNAulaManual;


It all works well except when cmbbxTurmaVazia or cmbbxDisciplina are
re-selected.

To avoid trouble I issue a couple line codes at cmbbxTurmaVazia and
cmbbxDisciplina AfterUpdate as:

cmbbxNSerieAula = Null
cmbbxNSerieAula.Requery
Me.Requery

It all works fine except that when re-selecting cmbbxTurmaVazia or
cmbbxDisciplina the new selection works nicely in what respects to
cmbbxNSerieAula but when I selectcmbbxTurmaVazia or cmbbxDisciplina
the new selection does not remain (shown - is not shown) in the
changed ComboBox although cmbbxNSerieAula 'understands' the 'not shown
selection' and works OK. I mean, it all works fine but the selected
records are not shown (do not stay) in cmbbxTurmaVazia or
cmbbxDisciplina.

If I immediately select again the selected record remains shown.

Thanks for any help.
 
Reply With Quote
 
 
 
 
H. Martins
Guest
Posts: n/a
 
      15th Jul 2010
I forgot to mention it is under Access 2003.

Henry
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate Fields on Form based on Dropdown selection in Form =?Utf-8?B?QmVuIER1bW1hcg==?= Microsoft Access 1 3rd Apr 2007 08:18 AM
Sub Form child link updated when main form combo selection is made karen scheu via AccessMonster.com Microsoft Access Form Coding 1 4th Apr 2005 02:57 PM
Is Convert.ToSByte buggy or am I buggy? David Levine Microsoft Dot NET 4 13th Feb 2005 10:45 PM
form.ClientSize , is it buggy? Bilo Microsoft Dot NET Framework Forms 0 12th Apr 2004 07:18 AM
Form.Clientsize , is buggy? Bilo Microsoft Dot NET Framework Forms 0 12th Apr 2004 07:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:18 PM.