|
|
Requery on a ComboBox gives ODBC error
Hello -
I am trying to requery the values that show in ComboBox 2 based the value
that is selected in ComboBox 1.
Combo Box 2 values work when you first go to a new record and select a value
in ComboBox 1, but if you decide to go back and change the value in ComboBox
1, the old list of values are still in ComboBox 2
Some of the fields on this form do not allow NULLs and the ReQuery or
Refresh commands are giving me an ODBC error.
How do I refresh the values in ComboBox 2 ONLY without having to put data in
all the fields first?
I am using the following Event on the OnExit of ComboBox 1
DoCmd.Requery ([ComboBox2])
Thanks for your help.
sandy
|
|
0
|
|
|
|
Reply
|
Utf
|
3/14/2007 8:16:45 PM |
|
When you change the value in combo1, combo2 will not requery automatically,
you have to make it do it yourself. Code an AFTER UPDATE event for combo1
with a requery:
Me!Combo2.Requery
-Dorian
"Sandy" wrote:
> Hello -
>
> I am trying to requery the values that show in ComboBox 2 based the value
> that is selected in ComboBox 1.
>
> Combo Box 2 values work when you first go to a new record and select a value
> in ComboBox 1, but if you decide to go back and change the value in ComboBox
> 1, the old list of values are still in ComboBox 2
>
> Some of the fields on this form do not allow NULLs and the ReQuery or
> Refresh commands are giving me an ODBC error.
>
> How do I refresh the values in ComboBox 2 ONLY without having to put data in
> all the fields first?
>
> I am using the following Event on the OnExit of ComboBox 1
>
> DoCmd.Requery ([ComboBox2])
>
>
> Thanks for your help.
>
> sandy
>
>
>
>
|
|
0
|
|
|
|
Reply
|
Utf
|
3/15/2007 2:58:05 PM
|
|
|
1 Replies
222 Views
(page loaded in 0.059 seconds)
Similiar Articles: Requery mulptiple forms Access 2007 - microsoft.public.access ...... to read from the first entry, but when I tell it to sum, it just gives me an error. ... microsoft.public.access You'd use the AfterUpdate event of that combobox to requery the ... incorrect null value in combobox - microsoft.public.access ...I tried including me.combo.requery in my codes ... writing a null-value? ... trapping the error leaves me with a combobox ... leaves the previous value and effectively gives ... Update SQL Error - microsoft.public.access.formscodingStill getting the syntax error in UPDATE ... strSQL, dbFailOnError > > > > Me.Requery ... The subsequent one (which runs after it gives the following error on ... Show sum based on selection from Combo Box - Help Please ...... you change the criteria, you will need to requery the ... What other info can I give to help you help me? Please ... Storing selected Item from the combobox...please help ... Cascading Combo Code Not Working - microsoft.public.access ...... boxes and I keep getting an "Undefined Function" error ... I do not know VBA, so if you try to give me code ... ... I have cascading combo boxes, first combobox dtermines what ... QueryDefs error - microsoft.public.access.forms... Allen Browne" wrote: > Which line gives the error ... the form. > I did that. When I requery the form, I get the error ... ... Access Memo field - VBForums HY104 ODBC error ... Display new record option upon NotInList event in combobox ...Hello all, I have an unbound combobox (Combo12) that ... ways to display a custom pop-up form that gives users ... required fields, save the new record, and then requery ... How to Apply Current Recordsource? - microsoft.public.access ...... microsoft.com> wrote: Screen.ActiveControl will give ... I gave it my best and failed on several attempts Error ... combobox recordsource query using vba function? - microsoft ... Problem Linking tables - microsoft.public.accessFoxPro Tables via ODBC When I link tables with numeric fields Access gives me an error: "The Decimal field's ... ... query using linked tables and vba function ... combobox ... Too Few parameters. Expected 2. (3061) - Northwind DB - Please ...... Extended] WHERE [ID] = 52" > >Could you please give ... problem, On the Order Details form there is a combobox ... [ODBC Microsoft Access Driver] Too few parameters. Microsoft Access: Requery combo box problem (error 2118 ...Form1.Combobox.Requery on the Form2's ... > combobox was for was a primary field, and gives error messages that ... client. i know we can get thru odbc ... Recordset: Requerying a Recordset (ODBC) (MFC)Open Database Connectivity (ODBC) ... A call to Requery or Open might fail for any of a number of reasons. Perhaps a network error occurs; or, during the ... [2005] Resolved - Requery Combobox Datasource | Using VisualBasic-net[2005] resolved - Requery ComboBox DataSource Visual Basic .NET ... If someone could give me the last part of that code ... the DataSource property in conjunction with an ODBC ... Visual Basic :: Requery - BigResource: Webmaster Scripts ...I need alittle help here I have a combobox ... However requery method does not work. It gives error 3219 (This operation is not ... I have the following problem: Using ODBC ... Visual Basic :: Requery - Resync - Adlockbatchoptimistic ...Our data provider is the Oracle ODBC ... but will not show up in a combobox that is ... but when I wan't to perform a requery on the adodc control the system gives the error 7/29/2012 5:25:44 PM
|
|
|
|
|
|
|
|
|