473,396 Members | 1,608 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,396 software developers and data experts.

Unbound Column Should Contain Certain Value For Each Record

68
Hi,

I've a query on a tabular form the represents the cureent status of the availabe seats of each course. I added unbound column(Status) to the form that supposed to say either close when the number of the availabe seats is =0 or open when the number of the avaialbe seats is >0.

Can this be applied on tabular forms? If not is there substitute approach?
Sep 21 '09 #1

✓ answered by missinglinq

The value of an Unbound control on one record is the value of that control on all records. In a Single View form you can use code in the Form_Current event set the field based on something, such as available seats, but this doesn't work in Datasheet or Continuous View forms

You'll have to bind the Status field to your underlying table for it to reflect that particular record/class' status.

Linq ;0)>

4 2987
missinglinq
3,532 Expert 2GB
The value of an Unbound control on one record is the value of that control on all records. In a Single View form you can use code in the Form_Current event set the field based on something, such as available seats, but this doesn't work in Datasheet or Continuous View forms

You'll have to bind the Status field to your underlying table for it to reflect that particular record/class' status.

Linq ;0)>
Sep 21 '09 #2
NeoPa
32,556 Expert Mod 16PB
The standard way to handle this, as Linq indicates, is to add a calculated column to your query and bind the control on the form to that.

FYI: Why Values in Unbound Form Controls do not Persist may help you to understand why this is the way to do it.
Sep 21 '09 #3
ahd2008
68
thanks gents for your feedback
Sep 23 '09 #4
NeoPa
32,556 Expert Mod 16PB
You're welcome :)
Sep 23 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Steve Jorgensen | last post by:
Hi all, I've just finished almost all of what has turned out to be a real bear of a project. It has to import data from a monthly spreadsheet export from another program, and convert that into...
2
by: Simon P | last post by:
Hello group, I'm in desperate need of help. Here goes : I have the following tables : CONTACTS (ContactID, FirstName, LastName, Company, etc.), SHOWS (ShowID, ShowDescription) and SHOWDETAILS...
4
by: Robert | last post by:
Have main form with an unbound subform1 which is used for data entry. Subform1 has a nested continuous unbound subform (subform2) which is used to enter multiple records related to the record being...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
1
by: planetthoughtful | last post by:
Hi All, I have a mainform with a subform in which I show some task summary data. On the mainform I have a number of unbound controls that reflect values relevant to each task in the subform....
3
by: Richard | last post by:
How is the result of query placed in a unbound textbox ? Suppose CriteriaLookups has columns TableName, KeyColumn, KeyValue, DataColumn Foo,x,11,xhat Bar,z,3,xyzzy And
0
VbaNewbee
by: VbaNewbee | last post by:
I have a form with a few filters. Once the user clicks "search button", the code first evaluates my filters, then shows the query results in a List Box" titled backschedule. I have a few text...
4
by: =?Utf-8?B?am9obmI=?= | last post by:
Hi All I have a 2005vb.net Form with 2 datagrids with a perent child relationship. On the child datagrid I have 2 unbound columns which are derived from other columns in the grid. And it works...
11
by: jwessner | last post by:
I have a form (Form1) which contains basic Project data and a subform listing the personnel assigned to the Project as a continuous form. Selecting a person on that project and clicking on a command...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.