473,503 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programatically populate continuous form

Hi.
Is there a way to programatically populate a continuous form?
I have an array of descriptions that I want to display in the
continuous form and I have a textbox on the form called
'txtDescription'

I can populate the text box using this code:
Me.txtDescription.Value = myArray(1)

Trouble is, I can't figure out how to get more than 1 row to display
without linking the form to a table.
Also, I don't know how to address each separate instance of the
textbox.

I guess I'm looking for something like this:
Me.txtDescription(1).Value = myArray(1)
Me.txtDescription(2).Value = myArray(2)

Can this be done?
Nov 12 '05 #1
3 6281
DFS
Probably best to move the descriptions to a work table, and link the form
and display them that way. I take it the descriptions are either in a table
already, or hard-coded in a subroutine somewhere.

"Damian" <dt@uku.co.uk> wrote in message
news:3b**************************@posting.google.c om...
Hi.
Is there a way to programatically populate a continuous form?
I have an array of descriptions that I want to display in the
continuous form and I have a textbox on the form called
'txtDescription'

I can populate the text box using this code:
Me.txtDescription.Value = myArray(1)

Trouble is, I can't figure out how to get more than 1 row to display
without linking the form to a table.
Also, I don't know how to address each separate instance of the
textbox.

I guess I'm looking for something like this:
Me.txtDescription(1).Value = myArray(1)
Me.txtDescription(2).Value = myArray(2)

Can this be done?

Nov 12 '05 #2
In order for a continuous form to display different data in each row, it
must be linked to a table.

Data-bound forms are what Access does best, but there are also many options
for displaying data without directly binding the form.
One way of displaying an array of data without keeping it in a table is to
use a listbox instead of a continuous form.

HTH
- Turtle

"Damian" <dt@uku.co.uk> wrote in message
news:3b**************************@posting.google.c om...
Hi.
Is there a way to programatically populate a continuous form?
I have an array of descriptions that I want to display in the
continuous form and I have a textbox on the form called
'txtDescription'

I can populate the text box using this code:
Me.txtDescription.Value = myArray(1)

Trouble is, I can't figure out how to get more than 1 row to display
without linking the form to a table.
Also, I don't know how to address each separate instance of the
textbox.

I guess I'm looking for something like this:
Me.txtDescription(1).Value = myArray(1)
Me.txtDescription(2).Value = myArray(2)

Can this be done?

Nov 12 '05 #3
The only way to do this I can think of would be to use a table or query,
even as a temporary one. You can still use your array system, but loop
through them and them to the table using a recordset, then refresh your
form.

As for refering to a specific instance of a control, you must move the
form's record pointer to a specific record first. Access dosen't allow you
to use control arrays like VB does. You can set or read this by using
Me.CurrentRecord.

Mike Storr
www.veraccess.com

"Damian" <dt@uku.co.uk> wrote in message
news:3b**************************@posting.google.c om...
Hi.
Is there a way to programatically populate a continuous form?
I have an array of descriptions that I want to display in the
continuous form and I have a textbox on the form called
'txtDescription'

I can populate the text box using this code:
Me.txtDescription.Value = myArray(1)

Trouble is, I can't figure out how to get more than 1 row to display
without linking the form to a table.
Also, I don't know how to address each separate instance of the
textbox.

I guess I'm looking for something like this:
Me.txtDescription(1).Value = myArray(1)
Me.txtDescription(2).Value = myArray(2)

Can this be done?

Nov 12 '05 #4

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

Similar topics

3
3131
by: David Busch | last post by:
Does anyone know of a way to fill in a JSP form programatically? Any pointers are greatly appreciated. Dave
3
15797
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
1
2985
by: tmuhammad | last post by:
Hi there, I am trying to populate a continuous form using ADO, following is the function which needs fixing, can someone kindly help me with this. Thanks much Private Sub Form_Load() On Error...
1
2079
by: John | last post by:
My data has 10 accounts. Two forms are opened simultaneously. Form1 is unbound and displays three records: Account Quantity 101 17 104 25 107 ...
4
3155
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
1
1669
by: monsey11 | last post by:
Hi all, I'm racking my brain to come with an idea for a form. here are the requirements: its for a custom quilt manufacturer and on each quilt order there may be added many customizable...
5
2066
by: Desmond Shek | last post by:
Hi, I am new to this DB caper and am really struggling. I have a form called customers with a subform called property search. The subform (a continuous form) allows users to search the table...
2
18598
by: mfaisalwarraich | last post by:
Hello Everybody, Please tell me is there any way to populate an unbound form of MS Access 2002 with Recordset of an MS Access 2002 external database?? if yes then how??? I dont wana link...
2
4413
by: Steve | last post by:
I have a continuous form showing Product Code and Product Name. Product Code is five digits and is sequential. I have a textbox in the form header. What is the code to scroll the continuous form so...
0
7205
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
7348
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...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
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...
1
5021
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...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3175
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...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
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 ...

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.