Forms :: Text Box Taking Value From Wrong Column?

Oct 1, 2013

I have a text box that is displaying a value from a table where the display control for the field in the table is a two row combo box. The text box on my form (I'm droping the text box on the form and manually changing the control source) is displaying the second column of the combobox where as I want the first column. If I drag the combobox from the field list onto the form it does show the expected first column (now if i change this to a text box in properties it shows the second column as well). Is there a way to change the text box to view the first column?

View Replies


ADVERTISEMENT

Forms :: Expression On Text Box Returning Wrong Value

Mar 29, 2013

I have a form used for taking inventory. One table to lookup items, one for writing values. Tables linked by an ID #. I created a text box on my form to lookup a value called PARQTY in the lookup table. I need to be able to subtract that value from the QTY that is entered into the Qty_Counted box on teh same form when they take inventory.

I created a new Text box and in the control source for it, I entered an expresion that basically says subtract The PARQTY from the QTY_COUNTED it reads = [QTY_COUNTED] - [PARQTY]

The box is subtracting the QTY_COUNTED from the ID # that is linking my two tables and displaying it. Its not supposed to be subtracting the QTY_COUNTED at all. It should be subtracting the PARQTY value that is displayed from the QTY_COUNTED. The PARQTY box does display the right value from the lookup table so I can't figure out why it's pulling that ID number or where from. The rest of the form / program works and we've been using it for a few years. I also created that, but like now, I had to muddle through each and every little thing I did.

View 9 Replies View Related

Forms :: Display Row Text From Subform Column In Unbound Text Box Of Main Form

Jan 6, 2014

My database has Main form and a Sub form. On main form i place one unbound text box named investigations. In subform of which datasheet there is a column named TestCode. I want unbound text box (Investigations) to display row values which selected in a column (TestCode) of subform.for example:Investigation field should display "CBC,HB,ALP".

View 5 Replies View Related

Forms :: Value Of Text Box Is Equal With Column 1 From List Box

Nov 7, 2013

i create a project for salary company , i have a list box and have 6 columns & i have 1 textbox , i work with code and a listbox is the query know i need the value of textbox is equal with the column 1 from listbox how to do it ? like when i run form need to be enter the code when entered the code in listbox is equaled with the textbox .another question , in the list box i have one column it is about salary i want the total of salary.

View 4 Replies View Related

Forms :: Unbound Text Box Equals List Box Column

Mar 11, 2013

why =listboxname.column(0) in the control source of a textbox will give me the value "#name?" ? I've used it successfully on another form..but for some reason its not working for me.

View 6 Replies View Related

Forms :: Taking Out Certain Value From Table?

Aug 16, 2014

I am using ms access for entry of data of AC technicians. All Technicians can gain bonus amount in % if they work well and bonus % is dynamic for each technician. Suppose, Technician Mr.Jhon work for $300 or above so his bonus % is 5 and if he done work of $800 or above then bonus % is 9 and son on. But this % rule is not same for each Technician(based on experience company decided the %).

So How can i get % figure while entering data of specific Technician suppose I am entering Data for Mr.Jhon and i enter work done $600 (which is greater than $300) so the value 5 should be appear in next of my form column.

View 10 Replies View Related

Forms :: Datasheet View - Change To Bold Column Text

Apr 20, 2014

Is it possible to change to bold font the text column of a datasheet view?

View 3 Replies View Related

Forms :: Change Combo Box To Text Box - Show Unbound Column Value

May 28, 2013

How to change a combo box to a text box control in a subform for a field that is based on a two-column value list. I want to be able show the value in the unbound column (which is a text value instead of a number).

My subform has a field called "ProjectStatus". This field is a value list in my projects table with the following row source:

1;"Built";2;"Unbuilt";3;"Active";4;"On Hold";5;"Completed (Master Plan)";0

So, it is set as a two-column value list with a number data type for the bound column. In my forms, column 1 is made invisible (set to 0") so that only the text value is shown to the user. This works fine with combo boxes.

However, I want to change the unsightly combo box to a text box and show the text value of the unbound column (this form will only be used to show data not for entry). When I change it to a text box control, the value that appears is a number, of course.

If ProjectStatus were based on a table, rather than a lookup value list, I would query it but I am not sure how it should be done with a value list. I could just store the text value instead, I guess, and redo a bunch of stuff or I could create a "Status" table and redo a bunch of stuff (this seems like my lot in life lately) but I feel like there should be some way to do this.

View 6 Replies View Related

Taking Data From Forms Every Month

Nov 21, 2005

I have a database set up with charts which plot information about support for "quality" purposes.
I have reports that work out the percentages but i would like to be able to take the percentage figure (say on the 1st of each month) and add it to a graph which will then be able to show the figures from the last 12 months so i can see how well the support is performing.
Any help would be greatly appreciated

View 3 Replies View Related

Forms :: Get A Certain Column Of Query Result Pasted To A Text Box When Open Form?

May 7, 2014

How do I get a certain column of a query result pasted to a text box when I open the form?

View 2 Replies View Related

Forms :: Taking Data From Form And Placing Into Table

Nov 20, 2013

I have a form that I am inputting data into. I have been able to Clear the form. I have created an edit script and it brings the data from the table to populate the form. When I try to change the data in the form and run a VBA update to push the data down to the table I am having no luck. I can add/Delete recordswith no problems but I can't edit them and put them back in the table. I am novice and just learning the formats and scripting.

View 7 Replies View Related

Forms :: Datasheet In Navigation Taking Multiple Refreshes Before Updating

Apr 7, 2014

I have a Navigation form which contains a subform and on that subform is a datasheet.

Navigation Form -> Navigation Subform -> MyForm -> MyDatasheet

I have been having a hard time getting the datasheet to update - I've tried several methods (refresh, requery, repaint, etc). Even pressing the "Refresh All" button on access takes 1 or 2 refreshes before my data is updated.

View 4 Replies View Related

Forms :: Display Number Of Events Taking Place Today

Dec 17, 2013

I'm creating a database for a music store which also does music lessons. In the header I wish to display the number of lessons that are taking place each day, the number will be dynamic as the number of lessons vary from day to day. I obviously have a table with all the lessons that have already taken place, as well as lessons that are taking place in the future.

I've attached the header (isn't the final version) as an example.

View 1 Replies View Related

Forms :: List Boxes - Single Column Versus Multi Column

Apr 3, 2013

How do I select the first column of a multi-column list box (called "List1") for a query.

A single column list box works fine.

Code:

SELECT Tble_Employee.Emp_No, [forms]![attendee_form]![list1] AS SelectedCourse
FROM Tble_Employee;

View 6 Replies View Related

Forms! Where Am I Going Wrong....

Jan 23, 2008

Hi,

frustration city over here.

for something that reads so simple, i cannot do it. why?

4 tables
Contacts
Authorizations
Payment Numbers
Payments

all tables are 1 to many relationships with referential integrity.
every contact can have many Authorizations
every authorization can have many payment numbers
many payment numbers can have many payments

all payments numbers created are based on the latest Authorization number.
a single payment number will have numerous payments listed.

i have tried forms with qry, forms with tbl, forms with forms, sub forms, sub sub forms. i can get so far but then everything stops linking together. ive tried VB ( barr it i am better with Excel!! ) to open forms, link forms.

story.
1. my main form will show the current contact & all details.

2. i click a button and want to make a payment to them.

3. a form should open and automatically create a new payment number with a subform ready to receive payment details in a continuous form layout. i can then either press an apply button on the main form to save or a cancel button to completely cancel the payment number.

after this, i wanted to add a button on this form to add a new authorization number and refresh but i need to get over this hurdle first.

Please Please Please can someone guide me? the rest of my project is based like this so if i can understand how this can be done, i can move forward to complete.


Any help would be graciously received so i can at least move in a direction rather than circles!!!!!


many thanks,


Nigel

View 11 Replies View Related

Forms :: Picking Up Wrong Record

Dec 6, 2013

I have a table called "Cities" which has only two fields; City & Province.I have connected it in a relationship with another table as "Include ALL records from 'Cities' and only those records from 'tblInstallations' where the joined fields are equal."I have put an "AfterUpdate" event which works and everything.

It is working fine and updates the province correctly.The problem is that is putting another city from same province in the "City" field even though I picked up different name.

View 6 Replies View Related

Forms :: Wrong Focus When Switching Among Pages Of TAB Control

May 3, 2013

I have a form with a TAB control and four pages. Each control of each page has his TAB index set correctly (starting from 0 to n), some of controls are not enabled to be tabbed. The form's cycle is set on "Current page".

I have two kind of problems.

First: I am on the last control of the page, pressing TAB key the focus gets invisible. Press TAB key again and the focus moves on the first page's control. For each page happens this behaviour.

Second: clicking randomly on the TAB pages the focus is not always on the control with TAB index 0, but usually on the last.

I have read that clicking on a new page the focus should be automatically on the first control, but this does not happen in my experience.

View 9 Replies View Related

Forms :: Search Listbox Results Point To Wrong Records

Jul 31, 2015

So I created a search form which filters my results. Apparently I don't have enough posts to link to the source of the code though. The code is from this website, /forums/showthread.php?t=188663

I then wanted to allow users to double click a result in the listbox to take them to the form which contains details about that record, however the listbox doesn't point to the correct record.

-When nothing is specified in the search field, all records are shown in the listbox, but double clicking on the first record takes me to a form that has no information. Clicking the second record takes me to the Detail Form of the first record.
-When information is put into the search field, the results are filtered and only a few display, however clicking the first result again takes me to a blank form while the second result takes me to the first record of the unfiltered list. There is no way to reach the Detail Form for the last result of the listbox.
-I tried right clicking the results in the listbox and copy pasting the information. The first result gave me a "0", the second a "1", and so on and so forth. This was the same whether or not the information was filtered or not.
-I tried switching to a combo box and got the same results.

View 2 Replies View Related

Forms :: Combo Box Returning Wrong Results In Access 2010

Jun 11, 2014

I have an unbound combo box that I set up in a form using the combo box wizard in Access 2010. I selected the option that says, "Find a record on my form based on the value I selected in my combo box." The problem is that the combo box will not always display the correct record. It seems to only display the first record of a group of similarly named records in a table.

Example:

Code:
Last Name First Name SSN
Smith Alex 123-45-6789
Smith Jane 234-56-7891
Smith Mary 345-67-8910

If I select Smith Jane, the record for Smith Alex will display. I know that this has something to do with the bound column property, but I am unsure what to do to fix the issue.

What I have tried: I tried setting the primary key as the first field, but then I could only search by the primary key, which is unrealistic for this database. Users will be searching based on last name. How do I make the combo box select whichever record I select from the drop down list?

View 4 Replies View Related

Appending Column Text

Mar 2, 2006

hello all,

I have a table with the following columns

ContractID
CostValue
CostType - string

The contractID is not unique.

What I am trying to do is for each contractID I want the cost type

For example if I had 4 rows
ContractID CostType Cost
1 a
1 b
1 c
1 d

I want the following returned from a select statement:
Contact ID CostType Cost
1 a,b,c,d


Can anyone suggest on how I could do this?

Thanks for your help
:)

View 8 Replies View Related

Querie Order By Num Then Text In 1 Column?

Nov 20, 2006

Hi, I have a querie that returns various data based on the page of a part's Sub-Assembly. There are 4 basic items returned for each page that display in my subform it displays as follows:

SpecID - Page # - Part# - Description - etc.

4 basic SubAssembly Descriptions are

1 - A Text Description of Assembly as a whole (varies for each record and usually has a number such as 2" or 3" or 4" etc at beginning of field)
2 - Valve
3 - Selenoid
4 - Actuator

I want to sort these records so that the first field is that Text description field. I tried sort descending and this does sort descending but puts text field last. (i Know that this is because it is sorting on text first and then intergers. But I don't know how to program multiple OrderBy for this column. How can I sort by intergers first and then by text on this field? :o

Thanks for any help!

View 7 Replies View Related

Modules & VBA :: Text Column Holds Value Of ID

Feb 22, 2015

I have a table Actions as follow

Action ID Action
1 cutting
2 sowing
3 ripping
.. ..

At some time , on clicking the button that opens this lookup table I found some of the values of Action equal to Action ID

Action ID Action
1 1
2 sowing
3 3

What are all possible scenarios that would lead to Action column taking value of Action ID?

View 9 Replies View Related

Align Text In A Field Column?

Aug 16, 2011

how to make my text on a column align to it reads upwards?.

1) is it under the "Field Properties" (the bottom of the screen, last option) or

2)is it under the "property sheet". under some other option? perharps.

i tried option #1 and i tried all the option under the "align text" but nothing happened.

View 1 Replies View Related

Putting The Same Text Into Every Cell In A Query Column

Jul 22, 2005

Putting the same text into every cell in a query column

Hi All,

I sometimes have to mark every record in a query with the same text in a field, when the field is either empty or contains whatever text.

At present I do this by copying the text, and then pasting it (ctrl-v cursor-down, a thousand times) into every cell in a column.

How can I do this in a more efficient way?

Thanks for your help.

Adrian

View 8 Replies View Related

Listbox - Bound Column Text Field

Aug 10, 2005

Hi

I've created a listbox and am using the following code

stWhat1 = "": stCriteria1 = ","
For Each vItm1 In Me!LstArchive.ItemsSelected
stWhat1 = stWhat1 & Me![LstArchive].Column(0, vItm1)
stWhat1 = stWhat1 & stCriteria1
Next vItm1
Me!txtCriteria1 = CStr(Left$(stWhat1, Len(stWhat1) - Len(stCriteria1)))

The problem is that my bound column is a text field. I'm really struggling on where to put my quotations so that I get the following with the In function
In('00638','00639').

Any help or pointing in right direction would be very much appreciated
Carrie

View 3 Replies View Related

Return Column Header Text On Right Click Of Listbox

Apr 13, 2006

How do I return the Column Header Text on Right Click of listbox?


Thanks

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved