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. - Private Sub cmdStartQC_Click()
-
DoCmd.OpenForm "frmClaimQCScreen", acNormal, "", "CaseSF = '" & CaseSF.Text & "' AND [ProductionDt] = #" & ProductionDt.Text & "# AND [ProcessorID] = '" & ProcessorID.Text & "'"
-
End Sub
4 1193
johny,
Try slight mod below: -
Private Sub cmdStartQC_Click()
-
DoCmd.OpenForm "frmClaimQCScreen", _
-
acNormal, "", _
-
"CaseSF = '" & Me.CaseSF & _
-
"' AND [ProductionDt] = #" & Me.ProductionDt & _
-
"# AND [ProcessorID] = '" & Me.ProcessorID & "'"
-
End Sub
See how that works and let us know the results!
Awesome... This works twinnyfo...
Thanks a lot...
So I missed the formname in it which is why it shows an error?
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!
Agreed sir, I use to do that but sometime I fail to do. Thanks
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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 & "", "" & ...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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: 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...
|
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,...
|
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...
| |