473,386 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

A2K: unbound combo in bound form allows no selection

Hello all,

I am converting an Axs 2.0 application to a2k (I know A2K is not the
most current version but Axs 2.0 support ended and A2K is supported in
our company amd on every PC).
The form is part of an access projcet (ADP) and runs against SQL
Server 2000.

I have an bound form in endless view which contains a header with a
combobox. This combobox is bound to an access query and shall allow to
select filter criteria. The AfterUpdate-proc sets the ServerFilter
property of the form and performs a requery.

Everything works fine till a criteria is selected which results in no
data rows, i.e. detail section is empty.
After that two funny effects occure:
a) the selected criteria is not shown in the combo box
b) no other criteria can be selected

Work-around for a) is to click into the combo box or perform a
GotoControl which makes the content visible - for whatever reason.

Whats worse is - I was not able to find a reason / solution or at
least a work-around for b).

Any ideas?
Nov 13 '05 #1
2 3037
There is definitely a problem win Access 2K and above with unbound controls on
a bound form when there is no current record (not a problem on forms that
allow adding records, by the way). Even if you can manage to edit the
control, you often can't read its value from code.

I have worked around this by using an unbound master form and a bound subform.
Any control that needs to be functional regardless of whether there is a
current record in the bound form resides on the master form. I find this
usually makes sense visually as well.

On 17 Jan 2005 22:10:21 -0800, wm*******@gmx.de (Wolfgang Kreuzer) wrote:
Hello all,

I am converting an Axs 2.0 application to a2k (I know A2K is not the
most current version but Axs 2.0 support ended and A2K is supported in
our company amd on every PC).
The form is part of an access projcet (ADP) and runs against SQL
Server 2000.

I have an bound form in endless view which contains a header with a
combobox. This combobox is bound to an access query and shall allow to
select filter criteria. The AfterUpdate-proc sets the ServerFilter
property of the form and performs a requery.

Everything works fine till a criteria is selected which results in no
data rows, i.e. detail section is empty.
After that two funny effects occure:
a) the selected criteria is not shown in the combo box
b) no other criteria can be selected

Work-around for a) is to click into the combo box or perform a
GotoControl which makes the content visible - for whatever reason.

Whats worse is - I was not able to find a reason / solution or at
least a work-around for b).

Any ideas?


Nov 13 '05 #2
Hi Steve,

thanks for your reply - was a big help and good for my ruffeld ego ;-)

I found a work-around using stored procedures for combo boxes (Filters)
and list boxes (output of information) so the form is unbound. Negative
side effect - the size of the list boxes for output do not resize when
size of form changes (automatically). Will implement an auto-resizer
(when I feel like).

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bj | last post by:
I run into this problem regularly and can't seem to figure out how to do it. Suppose I have an unbound combobox (the list could be pre-typed or populated in some other way). I want to place that...
6
by: Megan | last post by:
I'm using an unbound combo box on a form as a record selector. I'm using the combo box to choose certain types of music, i.e. Alternative, Pop, Rock, etc…and then run a report based on the...
2
by: Todd | last post by:
Hello, I'm curious if anyone knows of a way (if one exists) to tell a form (in Access 2002 VBA) to sort on an unbound column of a combo box on the form. Here's what I want to do: A combo box...
0
by: Wolfgang Kreuzer | last post by:
Hello all, I am converting an Axs 2.0 application to a2k (I know A2K is not the most current version but Axs 2.0 support ended and A2K is supported in our company amd on every PC). The form is...
8
by: Lyn | last post by:
Hi, Can anyone tell me how the initial value displayed in Combo Box is determined when a form is opened? I am loading the dropdown from one field ("CategoryName") of a table, with "ORDER BY ". ...
10
by: Arno R | last post by:
Hi all, I have a database that I need to use in different versions of Access. This is A97 in most places and A2k in a few other locations. (I develop in A97 and convert the db to A2k for these...
3
by: Stig | last post by:
Hi, Any help on this one will be greatly appreciated as I have spent too long banging my head against the screen trying to get it sorted. Basically I would like to have a select all records...
7
by: Max | last post by:
I've included the needed tables in the DataSource. Those tables that are bound to controls I can workwith. But how do you get access to the DataAdaptors that are not bound? me.Dataset1.table...
9
by: prakashwadhwani | last post by:
I have an unbound combo box in the form header. I have used an input mask "CCCC" 40 times to limit the max number of characters to 40. When I tab into the combo box & press a character say "K"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.