Re: Combo box data vanishing



On Mon, 13 Aug 2007 20:14:01 -0700, kasab <kasab@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

In a continuous form, I have a task field combo which is used to filter
options for a
position combo AND a materials combo. The position combo works fine, and
materials combo works fine in the current record, but once I move to a new
record, the entry in the materials combo vanishes. It's saved to the
appropriate table (options), but just looks (at best) unprofessional, hard to
edit, etc. Also, the edit form built from the same setup displays a dialog
when opening that asks for the task and only displays the material selected
for the same task as entered.

All combos were set up interactively using SQL in the row source.

Please post the code and the SQL.

My guess is that the second combo is dependent on the first, so that when you
move to a different record, the second combo's row source no longer returns
any records. This can be a hassle to solve; one way is to create a textbox
displaying the desired value (from DLookUp or by basing the form on a query
joining to the Materials table); carefully superimpose the textbox on the
text area of the combo box. Be sure that the textbox is locked, disabled, and
not a tab stop.

John W. Vinson [MVP]
.



Relevant Pages

  • Re: Addind a combobox column value to a sql statement
    ... SQL does not know about the Column property of the Combo Box ... have to do this, but if you must, you can create an unbound Textbox and set ... Here's what I have in the row source properties: ... > Access refuses to accept the value of the column 1 from combobox ...
    (microsoft.public.access.forms)
  • Re: embedded SQL in COBOL
    ... I still have 'Learner' plates up for SQL - fortunately with N/E, having defined your DB, it allows you to select Query Type and it generates from EXEC to END-EXEC including the troublesome NULLs. ... DBI Main. ... Not shown in the above flowchart is a template for Dialogs to which I pass creation parametersand subsequently send data or receive data back - using the class Edit Materials as the Controller, ). ... MakeCollection - CURSOR SELECT DISTINCT ...
    (comp.lang.cobol)
  • Re: Trigger not updating in all conditions
    ... INSERT INTO MATERIALS ... TRIGGER FOR INSERT,UPDATE,DELETE IN MATERIALS TABLE ... row in Stock, there can only be one row in INSERTED with the ... Links for SQL Server Books Online: ...
    (microsoft.public.sqlserver.programming)
  • Re: c++ and database
    ... > languages using ODBC and SQL. ... > materials which make me work with this databases (I use Borland free ...
    (comp.lang.cpp)
  • Re: Joining every row from 1 table to every row from another
    ... I need to join all garments to all materials,! ... This can be done in SQL simply by omitting any join condition. ... This should work in Oracle, MySQL, or any other system that supports the most rudimentary features of SQL. ...
    (comp.lang.java.databases)