473,569 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form control values

Hi,

I don't think my message posted correctly so here it is.

Is there any way to access the individual values of a form text box?
I want to iterate through all of the rows and access the values of a
text box in my form.

thanks.

May 2 '07 #1
4 2814
Except for the Multi-Value Field (aka "Complex Data") a Text Box in a Form
contains only a single value. Could you clarify just what it is that you
have, and what you are trying to accomplish? Are you describing a
continuous forms view Form, and want to look at the data in the bound Field
for every Record in the RecordSource of the Form? And, if so, what is the
purpose. It is possible that someone could suggest a useful alternative to
the way you think it must be done.

Larry Linson
Microsoft Access MVP
"greg" <gr*****@gmail. comwrote in message
news:11******** **************@ u30g2000hsc.goo glegroups.com.. .
Hi,

I don't think my message posted correctly so here it is.

Is there any way to access the individual values of a form text box?
I want to iterate through all of the rows and access the values of a
text box in my form.

thanks.

May 2 '07 #2

Yes, well actually what I'm trying to do is set the values in the Text
Box to a dynamically generated query (within vba code) which I can
access with a DAO.Recordset object. However, the rest of the fields
are generated from a different query which cannot really be altered
because the file (for work related reasons) is read only. I was hoping
to set only certain fields dynamically because they are generated from
a crosstab query and if you join the rest of the query with it, the
data in the entire form cannot be editted. I need all of this
information to be displayed in the form though and still be editable.

I hope that makes sense.

Thanks,
greg

May 3 '07 #3
Yes, I think I understand. But, I am reasonably sure the way to accomplish
what you want is not to work in the Form, but with the tables/query that are
the RecordSource for the Form.

Am I correct in understanding that, to start, there will be no Records, so
you need to create them, populate one Field from a Crosstab Query, and then
populate the other Fields from a different Query? If not, please clarify.

If so, (1) how are the Records identified (what field is the one which
uniquely identifies the Record? What type of Field is it? If Autonumber,
that's an easy thing; otherwise, you have to define how the value is
calculated.) (2) Is there only one user, so that you have assurance that no
one else will be trying to do something with a partially-completed Record?
(3) What is the source of the data for the CrossTab Query? Do you have a
working Crosstab Query?

If the RecordSource of your Form includes a Query on ReadOnly data joined
with a Crosstab Query (the results of which aren't editable), then I am not
surprised that the Form is not editable.

Can you explain what type of data you have, what the crosstab is returning,
what editing you want to do, and what you are going to do with it/how you
are going to use it... in business terms, not Access tech terms?

Larry Linson
Microsoft Access MVP

"greg" <gr*****@gmail. comwrote in message
news:11******** **************@ n76g2000hsh.goo glegroups.com.. .
>
Yes, well actually what I'm trying to do is set the values in the Text
Box to a dynamically generated query (within vba code) which I can
access with a DAO.Recordset object. However, the rest of the fields
are generated from a different query which cannot really be altered
because the file (for work related reasons) is read only. I was hoping
to set only certain fields dynamically because they are generated from
a crosstab query and if you join the rest of the query with it, the
data in the entire form cannot be editted. I need all of this
information to be displayed in the form though and still be editable.

I hope that makes sense.

Thanks,
greg

May 3 '07 #4
Answers below.
Am I correct in understanding that, to start, there will be no Records, so
you need to create them, populate one Field from a Crosstab Query, and then
populate the other Fields from a different Query? If not, please clarify.
The RecordSource for the form is being dynamically generated. I need
several
fields from a crosstab query and the rest from a standard query.
Everything
needs to be dynamically generated as this form is called from another
form
with a variable Date field. Right now I'm inserting the crosstab info
into a
table but the performance is not great.
If so, (1) how are the Records identified (what field is the one which
uniquely identifies the Record? What type of Field is it? If Autonumber,
that's an easy thing; otherwise, you have to define how the value is
calculated.) (2) Is there only one user, so that you have assurance that no
one else will be trying to do something with a partially-completed Record?
(3) What is the source of the data for the CrossTab Query? Do you have a
working Crosstab Query?
1) There is a reference number that is common to all tables in the
query. It is not an Autonumber.
2) The database is read only (so you can't dynamically change saved
queries) but the tables are linked sybase tables
3) I have a working crosstab query based on one of the tables but i
don't use it directly since the form has to be editable.
If the RecordSource of your Form includes a Query on ReadOnly data joined
with a Crosstab Query (the results of which aren't editable), then I am not
surprised that the Form is not editable.
- well the data is not read only. but crosstabs obviously can't be
edited.
Can you explain what type of data you have, what the crosstab is returning,
what editing you want to do, and what you are going to do with it/how you
are going to use it... in business terms, not Access tech terms?
so i have description table and a data table. the data table has a
timestamp field as well
which is what the crosstab is built on. so i want to display the past
12 months of data for a certain field
but the current month, as well as the description data to be editable.

Thanks for the help,
greg

May 3 '07 #5

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

Similar topics

3
3392
by: babu | last post by:
Hello All, How are you? I am facing an issue to print all the form control values (including datagrid values). Is there a way to print all the control values in VB.NET. If the grid contains more rows of data (like
1
1904
by: Chris John Jordan | last post by:
Can anyone suggest a way of getting FORM to post only its own control values? I find by default each FORM on a page POSTs the variables of all FORMs on the page, and this prevents my common ACTION script from processing each FORM individually. Thanks. -- Chris
1
3539
by: Joseph Del Medico | last post by:
I'm trying to use a query whose SQL view is shown below to get a recordset of all first quarter records from a table for a year that is in the textbox of a form, so I can sum up the totals for the first quarter for every person and display them on the form. The query works fine when I preview it in the query builder, but when I try to open a...
1
2602
by: Terri | last post by:
I'm trying to create an INSERT statement that inserts records where one of the values should refer to a from control. INSERT INTO dbo_CheckRequestPayments ( FundCode, CheckRequestID ) SELECT localGenerateExpenses.FundCode, !! AS CheckRequestID FROM localGenerateExpenses; When I run the select part of this statement I get a strange...
2
1624
by: Softwaremaker | last post by:
Hi all, I have created a Windows Form control that runs on a web form. This control is a composite control comprising of other textboxes (public scope). This control inherits from the Windows.Form.Control class. I have put it on a web form with the following code : <OBJECT id="MyWebControl" height="300" width="300"
1
1052
by: Cezar | last post by:
I am new to Web Forms and I ported my little app from Windows Forms to ASP.NET and I am wondering why some things are not working as before. Although I figured most of them, one of them is that on my form I have input fields and a button causing to store all the input fields into the database. However, when in the button OnClick event I gather...
0
1650
by: aakash | last post by:
Hello Guys I am upsizing ms access project to give it a ms sql connectivity I am having problem in accessing form control values in ms sql function CREATE FUNCTION "ReportList DateRange"() RETURNS TABLE AS Begin RETURN
0
1936
by: aakash | last post by:
Hello Guys I am upsizing ms access project to give it a ms sql connectivity I am having problem in accessing form control values in ms sql function CREATE FUNCTION "ReportList DateRange"() RETURNS TABLE AS Begin RETURN
1
2142
by: bowl3969 | last post by:
I have a form with a lot of controls on it that will be used to update tables. The nature of the data is such that I will be running queries based on the control name. sqlstr="insert into tblgames (score) values (me.pbScore1);" doCmd.runsql(sqlstr) "insert into tblgames (score) values (me.pbScore2);" doCmd.runsql(sqlstr) insert into tblgames...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8125
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7974
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.