Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS ACCESS






SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Save Value From Unbound TextBox


Hi I have a unbound textbox on main form which is updated from totals from the subform.

Since I need to save the values of the unbound text box I setup another bound text box on the same form and I need to transfer values from the unbound text to bound text automatically.

But to my suprise the afterupdate event of the unbound text does not transfer any values while the click event does.

I have also attached a small sample of my database. Any help will be much appreiciated.

Thanks


View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Save Value From Unbound TextBox
Hi I have a unbound textbox on main form which is updated from totals from the subform.

Since I need to save the values of the unbound text box I setup another bound text box on the same form and I need to transfer values from the unbound text to bound text automatically.

But to my suprise the afterupdate event of the unbound text does not transfer any values while the click event does.

I have also attached a small sample of my database. Any help will be much appreiciated.

Thanks

View Replies !   View Related
Pass Value From Unbound Textbox To Bound Textbox
Hi: There are two textboxs in my main form. One is bound and another is unbound. There is no entry in the unbound textbox as values come into automatically after entering some information in the subform. My question is how to i pass values from unbound textbox to bound textbox every time when the value change in unbound textbox i need to change the value in the bound textbox. When the form load there is already value in the bound textbox which i want to override based on the values from the unbound textbox.

Thank You.

View Replies !   View Related
Unbound Textbox
I have a form that calls up an employee that also lists their hire date. I have an unbound text box that calculates the years of service by DateDiff(). It works for the first record but sticks for all the subsequent records. I've tried an afterUpdate or Change on the bound Hire_Date text box that is Me.txtYearsOfService = DateDiff("yyyy",Me.Hire_Date,Now) but it still sticks to the first record.

I'm sure this is basic but can't see the obvious. Please relieve the pain.

Thanks

View Replies !   View Related
Simple Qry Using Unbound Textbox.
Hi all,
I am experiencing problems trying to put together what I thought was a simple form that would
allow users to search for data from a field on one table and display the results in a data grid style from the query I have created. However the query is'nt working and I am sure it is because of the way I have coded the query to read from the form's textbox. The SQL code is below.

SELECT tblFiles.Vault, tblFiles.Wlt, tblFiles.CD, tblFiles.Media, tblFiles.ProjectNo, tblFiles.ProjName, tblFiles.FileName, tblFiles.Location, tblFiles.NetLoc, tblFiles.CreDate
FROM tblFiles
WHERE (((tblFiles.FileName)=[forms]![frmArchive].[txtprjname].[value]));


There is a value in that field as 'attachment' and if I type that in the textbox it will find the records that have exactly that string but if I type 'att' there are no results. I tried searching in help for 'Like' since I believe that is the problem with my code but it did not show me an example of how to code that in the query to refer to the object on the form.

the code I have on the button next to the unbound textbox is as follows...

DoCmd.OpenQuery "qryFindPrjFile", acViewNormal, acReadOnly

Can anyone offer me any advice on how to do this?

Regards,
Mitch...

View Replies !   View Related
Simple Qry Using Unbound Textbox.
Hi all,
I am experiencing problems trying to put together what I thought was a simple form that would
allow users to search for data from a field on one table and display the results in a data grid style from the query I have created. However the query is'nt working and I am sure it is because of the way I have coded the query to read from the form's textbox. The SQL code is below.

SELECT tblFiles.Vault, tblFiles.Wlt, tblFiles.CD, tblFiles.Media, tblFiles.ProjectNo, tblFiles.ProjName, tblFiles.FileName, tblFiles.Location, tblFiles.NetLoc, tblFiles.CreDate
FROM tblFiles
WHERE (((tblFiles.FileName)=[forms]![frmArchive].[txtprjname].[value]));


There is a value in that field as 'attachment' and if I type that in the textbox it will find the records that have exactly that string but if I type 'att' there are no results. I tried searching in help for 'Like' since I believe that is the problem with my code but it did not show me an example of how to code that in the query to refer to the object on the form.

the code I have on the button next to the unbound textbox is as follows...

DoCmd.OpenQuery "qryFindPrjFile", acViewNormal, acReadOnly

Can anyone offer me any advice on how to do this?

Regards,
Mitch...

View Replies !   View Related
Update Unbound TextBox
Hello,

I'm having a problem with one of my forms, i have created an unbound text box called Hours. In it i will type a number. Then click on a button to create a report based on this number.

what is happening though is that when i click the report button the report is blank, if i close the report and then click the button again i get the expected results. What seems to happening is that after i click the button the first time the form refreshes itself and the number is picked up.

Is there any snippit of code i could add to the print report button so it will work first time?

regards

Pete

View Replies !   View Related
Change Value Of Unbound TextBox Conditionally
Can anyone help me out here.
I need to use an unbound text control to return me a value if a field is populated else "Local" if the field is not populated.
Can anyone tell me if this is possible and show me the syntax if it is.
Help appreciated.
Andy

View Replies !   View Related
Date From Unbound Textbox Problem
hi there

what i am having difficulty with is :confused:

i have a form with a unbound text box were a date is added by a user and
then a command button is clicked and if the date entered is say 10 days older than the todaysdate date it opens a different form
something like this??

date < me.textdate then
open form

any help will be appreciated :)

thanks
rob
sorry if it seems a bit vague

View Replies !   View Related
Default Date For Unbound Textbox
i have an unbound form where users can enter as much or as little as they'd like to search the database. i'd like to have default values for two unbound textboxes for initial date and ending date. i was wanting to put in 1/1/1999 for initial and 1/1/2050 (or another high number) for ending date. however, when i put those values in the Default Value property for each textbox, it changes to 12/30/1899..for both the initial and ending dates...how do i get my dates to show up?

View Replies !   View Related
Control Source For An Unbound Textbox
I have a form that uses a query as its control source. The problem I have is that on this form I have an unbound textbox that I need to show the result of another query in. I thought I could do this by using =[Query]![QueryName]![Field name] in its control source, but this isn't working.

What is the right way to go about this?

Cheers

View Replies !   View Related
Limit The No. Of Characters In An Unbound Textbox?
Is there a way to limit the number of characters that can be entered into an unbound textbox on my form?

I have a search textbox, where a jobId is entered and button is clicked to search. The numbers are generally 8-digit. I just noticed one of my users trying to enter 9489858939349839434 :eek: ohh lawd. Please help me stop these people before they break my db...

View Replies !   View Related
Query Display Value From Calculated, Unbound Textbox
Here's the situation.

I have a calculated value in an unbound textbox (avghcppmw). I want to run a query (qinsphistory) in which one of the fields is the value of the textbox (avghcppmw).

Is there any way to pull the value from the form and display it in the query. I'm assuming not.

I also assume the only way to do this would be to create a query that would calculate the textbox value and base (qinsphistory) on the newly made query.

Is this correct?

View Replies !   View Related
Input Mask /format For Unbound Textbox - Currency
How do I apply this - can't seem to get it right - just want to control user into putting whatever and two deciimals for pence.

99.99 input mask is halfway there - except I don't want to limit the pounds amount. putting 99999.99 makes entering 12.31 etc a little awkward.

Cheers

View Replies !   View Related
Updating Unbound Textbox On Form Per Record Viewed
Hey, I am trying to figure out how to update an unbound textbox on a form to reflect conditional data in other boxes when each record is viewed (pages works with reports but I cant find something similar with forms). such as if I had an unbound textbox that I want to = firstname+" "+lastname I would want for it to update it every time a user goes to the next record.. I can't seem to figure out a command or method that executes every time someone goes to the next record.. (and Im not too familiar with all the commands that come without a GUI).. thanks for your time

View Replies !   View Related
Populate Unbound Textbox On Form With Results From Query
I have a bound form (frmSpreadsheet) which has three textboxes that around bound to frmSpreadsheet (ctlPeriod, ctlSlot, ctlTagCode) and two textboxes which are not bound to anything (ctlRawDetHD1 and ctlRawDetHD2). I need to populate ctlRawDetHD1 with the results from a query (qryCountofRawDetect) where the value of ctlTagCode equals qryCountofRawDetect.TagCode. ctlRawDetHD1 may be null if the TagCode was never detected on HD1 so I would like a zero to be displayed if that is true, else display the value of qryCountofRawDetect.HDCount.

Please advise on the best way to do this.

View Replies !   View Related
Addition Of Values In Two Unbound Textboxes And Assigning To A Bound Textbox
hello guys

i have values in two unbound textboxes and now i would like to assign the sum to a bound textbox. Also need AfterUpdate event too.

Can any expert help?

Thank you

View Replies !   View Related
Copying From 1 Textbox To Another Textbox On Different Forms
I have a text box on 'Forma' & a textbox (named text3) on 'Formb'.
I want to copy the contents of the textbox from 'Formb' to the textbox on 'Forma'. I have used the following code in the textbox on 'Forma'....

=Forms![Formb]![Text3].text

This doesn't seem to be working whether both Forms are open or only 'Forma'. Could somebody please advise as to what I am missing. Your assistance is very much appreciated.

View Replies !   View Related
Getting A Textbox To Populate Based On Another Textbox
Dear All:

I have created a form using access 2000. So far, this form already has data and dates in a combox in this format: mm/dd/yyyy.

In the AfterUpdate of the date combobox, I did this:

If graduation_date = #2/1/2004# then
Text_Graduation_date = "dated this first day of february two thousand four."
End If
End Sub

In addition, I have defined many other dates as well using the code above. It works well when I choose the date form the combobox, the other textbox populates, but there are so many more dates in the combo!

Is there a way to auto-populate the textbox with the appropriate text as I scroll through the form?

Thanks,

Dion

View Replies !   View Related
Textbox To Populate Another Textbox
Dear All:

I have created a form with various textboxes. In one unbound textbox called Graduation_date, I input information and this is reflected in another bound textbox called text762.

However, as I scroll through the form, the information that is to be reflected in textbox 762 disappears.

Any ideas on how to apply the information entered in Graduation_date textbox to all?

Regards,

Dion

View Replies !   View Related
When To Use Unbound
Ive been looking through the posts to see the merits of using bound and unbound forms. I have the following scenario and think that a unbound form would be best solution, what does anyone else think?

I have carried out normalisation of the system and have ended up with two identical tables called Broad themes, one of these tables relates to a documents theme, one to a organisations theme. Organisations and documents are both directly related in the table structure making it impossible to just use one Broad themes table (Circular).

I want to give the user an option form to enter the relevant criteria into unbound text boxes then select using an option group which table to enter information into or option to insert into both tables.

Is this where a unbound form would be most appropriate?

View Replies !   View Related
Unbound Box
I use form to enter a reservation for our kennel. I've put an unbound box to enter a run number. We print out a daily report showing who's coming in, but have drawn a block on how to get the number in the unbound box to print. How do I link the box to the report? Thanks

View Replies !   View Related

Copyright 2005-08 www.BigResource.com, All rights reserved