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

Need help on continous forms please

I have been looking for a way to figure out how to pass specific record
information from a continuous form onto another form. What I have done
was created a button in the detail section to open another form. This
form has text boxes and I linked their properties to the first form,
but it pulls the first record's information instead of the one the
button is next to. How can I accomplish this?

I have been looking for information for a few days now and have given
in to start a new topic. Your help is very much appreciated.

Nov 13 '05 #1
4 1326
The other form needs to be open. Then enter the following code in the Click
event of the leftmost field in the continuous form:
Forms!NameOfOtherForm!NameOfField1 = Me!NameOfField1InOtherForm
Forms!NameOfOtherForm!NameOfField2 = Me!NameOfField2InOtherForm
Forms!NameOfOtherForm!NameOfField3 = Me!NameOfField3InOtherForm
....
....
etc

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com


<La*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have been looking for a way to figure out how to pass specific record
information from a continuous form onto another form. What I have done
was created a button in the detail section to open another form. This
form has text boxes and I linked their properties to the first form,
but it pulls the first record's information instead of the one the
button is next to. How can I accomplish this?

I have been looking for information for a few days now and have given
in to start a new topic. Your help is very much appreciated.

Nov 13 '05 #2
Use the primary key of the record in the form to open the other form to the
same record.

This example shows the Event Procedure you could use for a command button
named OpenThisRecord, assuming a primary key named ID:

Private cmdOpenThisRecord_Click()
Dim strWhere As String
If Me.Dirty Then
Me.Dirty = False 'Save
End If
If Me.NewRecord Then
MsgBox "Select a record."
Else
strWhere = "[ID] = " & Me.ID
DoCmd.OpenForm "Form2", WhereCondition:=strWhere
End If
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<La*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have been looking for a way to figure out how to pass specific record
information from a continuous form onto another form. What I have done
was created a button in the detail section to open another form. This
form has text boxes and I linked their properties to the first form,
but it pulls the first record's information instead of the one the
button is next to. How can I accomplish this?

I have been looking for information for a few days now and have given
in to start a new topic. Your help is very much appreciated.

Nov 13 '05 #3
Please be more specific... if the record on the continuous forms view form
had not been saved, you could save it and then use the WhereCondtion
argument of DoCmd.OpenForm to open the new form to the same record.

I do not understand what you mean by "linked their properties to the first
form". Do you mean you are trying to set the values of the controls on the
newly-opened form to the values in the corresponding controls in the current
record of the continuous forms view form? If so, then you need to explain
_how_ you are doing so.

Larry Linson
Microsoft Access MVP
<La*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have been looking for a way to figure out how to pass specific record
information from a continuous form onto another form. What I have done
was created a button in the detail section to open another form. This
form has text boxes and I linked their properties to the first form,
but it pulls the first record's information instead of the one the
button is next to. How can I accomplish this?

I have been looking for information for a few days now and have given
in to start a new topic. Your help is very much appreciated.

Nov 13 '05 #4
thanks for all the help everyone. i figured out how to do it. on the
button in the detail section of the first form it opens a second form.
on the second forms load event i used the code in the first reply and
it brings over information i need. thanks a lot again.

Nov 13 '05 #5

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

Similar topics

2
by: JK | last post by:
Hi All, I am working a form which is tabular layout (continuous form) which will display multiple records at a time. Each line of record needs to be reflected on the color code to show their...
1
by: adolph | last post by:
I would like to add a check box to the detail area of a continous form. So that I can check on specific records, then after I've marked all the records I watn to delte, click a button to loop thru...
1
by: Eric | last post by:
Is it possible that in a continous form i create a listbox which is not a part of a table and disply some values. For eg: TableA has a field FieldA. I run a query on TableA when it loads it match...
5
by: kaisersose1995 | last post by:
Hi, I am trying to add some visual confirmation to a continous form, to let the user know if a stored date on the form has passed. I have managed to set the background colour using a simple IF...
1
by: Kev | last post by:
Hi, I am trying to total a column (Shift1) in a subform (continous forms) from the after update event of the (Shift1) column control within the subform. This column stores shift codes, I want to...
2
by: access baby | last post by:
How do i create continous form i created main form with subform drag and drop into main form but the subform shows me the 1st record of the customer . how can i link main form with subform i tried...
3
abouddan
by: abouddan | last post by:
Hi all I am trying to create a form 'Form1' that updates my database. Fist this form is based on a query that returns all the records in table 'employe'. query1="Select id, name, salary from...
2
by: rockdc1981 | last post by:
i have a form and subform... i have combo box on main form that has combo box to filter a record to be shown on subform... the case now is , is it possible the on load or after select a record...
5
by: AccessHunter | last post by:
Hi, I have a continous form that displays Name and Address of Suppliers. In the form there is a combo box for 'Active Address' and 10 other text boxes. All the fields coem from one table,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...
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...

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.