473,405 Members | 2,310 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,405 software developers and data experts.

How to Fetch the active row Data In a Continuous Forms and display in a new form?

66 64KB
Hi Team,

I am developing a workflow tool which will actually show all the processed data in a Continuous Forms from a table. Now I have a unbounded command button for each row. on click of a command button a XXXX form should open and the data in the active row or the data in the start button row should be displayed in the XXXX form.

Please help me how to acheive this.

My current code below doesn't help me out on this, and I am not sure how to complete this.

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdStartQC_Click()
  2. DoCmd.OpenForm "frmClaimQCScreen", acNormal, "", "CaseSF = '" & CaseSF.Text & "' AND [ProductionDt] = #" & ProductionDt.Text & "# AND [ProcessorID] = '" & ProcessorID.Text & "'"
  3. End Sub
Dec 17 '14 #1
4 1193
twinnyfo
3,653 Expert Mod 2GB
johny,

Try slight mod below:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdStartQC_Click()
  2.     DoCmd.OpenForm "frmClaimQCScreen", _
  3.         acNormal, "", _
  4.         "CaseSF = '" & Me.CaseSF & _
  5.         "' AND [ProductionDt] = #" & Me.ProductionDt & _
  6.         "# AND [ProcessorID] = '" & Me.ProcessorID & "'"
  7. End Sub
See how that works and let us know the results!
Dec 17 '14 #2
johny6685
66 64KB
Awesome... This works twinnyfo...

Thanks a lot...

So I missed the formname in it which is why it shows an error?
Dec 17 '14 #3
twinnyfo
3,653 Expert Mod 2GB
Yes. Sometimes you have to be explicit with VBA (and I prefer to always be so). I even go one step further and explicitly name all of my text boxes so that I know when I am referring to a Text Box vice referring to an underlying field (they are almost always the same, but sometimes you don't have the field on your form).

So, for example, if I have a text box that has as its control Source the field "CaseSF", then I name the text box "txtCaseSF", and so one. Combo Boxes have a "cbo" prefix, Command buttons are "cmd", etc. In the short run, it is a little extra work when building forms. However, in the long run (and especially when dealing with summing over groups on reports) you want to be as explicit as possible, and troubleshooting can be a bit easier.

Glad we could help again!
Dec 17 '14 #4
johny6685
66 64KB
Agreed sir, I use to do that but sometime I fail to do. Thanks
Dec 18 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Cro | last post by:
Dear Access Developers, I am developing a form with 'default view' set to "continuous forms". I am suffering with a problem I can't yet see a solution too. Each record has many fields. Two...
5
by: Armando | last post by:
I recently saw the tail end of a "Continuous forms" discussion, but not enough was available to see if this will be a PITA repeat question. Sorry if it is. On a form with its Default View...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
0
by: Steve Jorgensen | last post by:
One thing that makes Access so useful rapid development tool is the seemless way it links user interfaces to data storage. That is also one of its most maddening weaknesses, since Access doesn't...
4
by: debbie | last post by:
Well I'm finally trying out class modules...I have a great book I'm using but its ADO and I use DAO so it's a challenge for me...I've looked most of today, in my book and here but can not find an...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
1
by: blueheelers | last post by:
I have been researching for several hours on the best way to display images in continous forms in Access 2003. For example, I want to display employee name, email, phone, and picture for each...
5
by: bittman | last post by:
I have code as follows: Dim conn As New ADODB.Connection Dim rst As New ADODB.Recordset conn.ConnectionString = "Provider=MSDAORA;Password=tr7025ds;User ID=system;Data Source=WIN10" conn.Open...
5
by: kenethlevine | last post by:
Hello I am fairly new to Access and am having a problem for which I am trying everything without success. It is access 2003. I have a main form. When the user presses a button a modal popup...
7
by: Dave | last post by:
Hello All, These one may be a bit tricky, and what I'd like to do may not even be possible. I would love to hear any ideas you guys have for solving this. Here is the situation: I have a form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.