Hello,
I have a form A in my ADP project. The record source of A has input
parameters.
I need to open form A from three different forms X, Y and Z.
When I open A from form X, I want it to take input parameters from form
X.
When I open A from form Y, I want it to take input parameters from form
Y.
When I open A from form Z, I want it to take input parameters from form
Z.
How do I accomplish this?
Thanks,
Isaac 5 3716
Probably the easiest way it to pass the calling form name to form A via
OpenArgs, then have A generate a SQL string for its RecordSource property by
reading values from controls on the source form.
I usually don't like embedding parameter values in SQL when it can reasonably
be avoided, but I've used ADPs enough to know that any other way you might
attempt to do this is bound to be quirky and cause you massive headaches.
On 9 Dec 2004 00:56:42 -0800, is********@yahoo.com wrote: Hello,
I have a form A in my ADP project. The record source of A has input parameters.
I need to open form A from three different forms X, Y and Z.
When I open A from form X, I want it to take input parameters from form X. When I open A from form Y, I want it to take input parameters from form Y. When I open A from form Z, I want it to take input parameters from form Z.
How do I accomplish this?
Thanks,
Isaac
Thank you Steve! I now plan to use OpenArgs and use it in the On Open
event of the form to generate an appropirate SQL statement that
executes a stored procedure with the required parameters. As you
suggested then I plan to assign the generated SQL string as the
RecordSource of the form.
Thanks,
Isaac
Steve Jorgensen wrote: Probably the easiest way it to pass the calling form name to form A
via OpenArgs, then have A generate a SQL string for its RecordSource
property by reading values from controls on the source form.
I usually don't like embedding parameter values in SQL when it can
reasonably be avoided, but I've used ADPs enough to know that any other way you
might attempt to do this is bound to be quirky and cause you massive
headaches. On 9 Dec 2004 00:56:42 -0800, is********@yahoo.com wrote:
Hello,
I have a form A in my ADP project. The record source of A has input parameters.
I need to open form A from three different forms X, Y and Z.
When I open A from form X, I want it to take input parameters from
formX. When I open A from form Y, I want it to take input parameters from
formY. When I open A from form Z, I want it to take input parameters from
formZ.
How do I accomplish this?
Thanks,
Isaac
Let us know how it goes.
On 9 Dec 2004 20:01:58 -0800, is********@yahoo.com wrote: Thank you Steve! I now plan to use OpenArgs and use it in the On Open event of the form to generate an appropirate SQL statement that executes a stored procedure with the required parameters. As you suggested then I plan to assign the generated SQL string as the RecordSource of the form.
Thanks,
Isaac
Steve Jorgensen wrote: Probably the easiest way it to pass the calling form name to form A via OpenArgs, then have A generate a SQL string for its RecordSource property by reading values from controls on the source form.
I usually don't like embedding parameter values in SQL when it can reasonably be avoided, but I've used ADPs enough to know that any other way you might attempt to do this is bound to be quirky and cause you massive headaches. On 9 Dec 2004 00:56:42 -0800, is********@yahoo.com wrote:
>Hello, > >I have a form A in my ADP project. The record source of A has input >parameters. > >I need to open form A from three different forms X, Y and Z. > >When I open A from form X, I want it to take input parameters fromform >X. >When I open A from form Y, I want it to take input parameters fromform >Y. >When I open A from form Z, I want it to take input parameters fromform >Z. > >How do I accomplish this? > >Thanks, > >Isaac
Sure :-)
Steve Jorgensen wrote: Let us know how it goes.
On 9 Dec 2004 20:01:58 -0800, is********@yahoo.com wrote:
Thank you Steve! I now plan to use OpenArgs and use it in the On
Openevent of the form to generate an appropirate SQL statement that executes a stored procedure with the required parameters. As you suggested then I plan to assign the generated SQL string as the RecordSource of the form.
Thanks,
Isaac
Steve Jorgensen wrote: Probably the easiest way it to pass the calling form name to form
Avia OpenArgs, then have A generate a SQL string for its RecordSource property by reading values from controls on the source form.
I usually don't like embedding parameter values in SQL when it can reasonably be avoided, but I've used ADPs enough to know that any other way
youmight attempt to do this is bound to be quirky and cause you massive headaches. On 9 Dec 2004 00:56:42 -0800, is********@yahoo.com wrote:
>Hello, > >I have a form A in my ADP project. The record source of A has
input >parameters. > >I need to open form A from three different forms X, Y and Z. > >When I open A from form X, I want it to take input parameters
fromform >X. >When I open A from form Y, I want it to take input parameters
fromform >Y. >When I open A from form Z, I want it to take input parameters
fromform >Z. > >How do I accomplish this? > >Thanks, > >Isaac
Hello,
I tried passing a string through OpenArgs and tried to change the
record source of the form based on the argument passed. I get an error
message saying the Open form action was cancelled. Does this have
something to do with the (Cancel as integer) in brackets in the sub
routine? I tried removing this and setting the value of Cancel to
false, inspite of this the error continues to appear. Any solutions?
Thanks
Isaac
Steve Jorgensen wrote: Let us know how it goes.
On 9 Dec 2004 20:01:58 -0800, is********@yahoo.com wrote:
Thank you Steve! I now plan to use OpenArgs and use it in the On
Openevent of the form to generate an appropirate SQL statement that executes a stored procedure with the required parameters. As you suggested then I plan to assign the generated SQL string as the RecordSource of the form.
Thanks,
Isaac
Steve Jorgensen wrote: Probably the easiest way it to pass the calling form name to form
Avia OpenArgs, then have A generate a SQL string for its RecordSource property by reading values from controls on the source form.
I usually don't like embedding parameter values in SQL when it can reasonably be avoided, but I've used ADPs enough to know that any other way
youmight attempt to do this is bound to be quirky and cause you massive headaches. On 9 Dec 2004 00:56:42 -0800, is********@yahoo.com wrote:
>Hello, > >I have a form A in my ADP project. The record source of A has
input >parameters. > >I need to open form A from three different forms X, Y and Z. > >When I open A from form X, I want it to take input parameters
fromform >X. >When I open A from form Y, I want it to take input parameters
fromform >Y. >When I open A from form Z, I want it to take input parameters
fromform >Z. > >How do I accomplish this? > >Thanks, > >Isaac This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim |
last post by:
im using asp.net, C# to enter data into a table in sql
server...however im getting this error:
Input string was not in a correct format.
Description: An unhandled exception occurred during the...
|
by: ST |
last post by:
Hello, I will be posting 2 errors that I just can't seem to figure out (I'll
put them in different posts). I have looked all over the internet, and I
still can't figure these out! This webapp was...
|
by: SophistiCat |
last post by:
Hi,
I am working on a computational program that has to read a number of
parameters (~50) from an input file. The program contains a single class
hierarchy with about a dozen member-classes or...
|
by: Andrew Chanter |
last post by:
I am developing my first ADP client for a SQL db, after having used mdb's as
clients in numerous applications previously. I have found that
theoretically the Input Parameters property of a form in...
|
by: fumanchu |
last post by:
I've got to let end users (really just one person) load billing batch
files into a third party app table. They need to specify the billing
cycle name, the batch name, and the input file name and...
| |
by: FS Liu |
last post by:
Hi,
I am writing ATL Service application (XML Web service) in
VS.NET C++.
Are there any sample programs that accept XML as input and
XML as output
in the web service?
Thank you very much.
|
by: Chad Micheal Lawson via .NET 247 |
last post by:
I'm stumped at this point and I'm tired of trying things so I'mposting in hopes of some guru with a sharp eye. I have anasp.net app running on a local Win XP Pro box. Within the app,I call a SPROC...
|
by: joesin |
last post by:
I recently found a vulnerability on my website that allowed sql
injection. I have been trying to write some code that would clean user
data but have been running into problems. The validation still...
|
by: yawnmoth |
last post by:
I'm trying to get a list of all the input elements of a form tag and
am having some difficulty doing so. First, here's my XHTML:
<div>
<form action="">
<input type="text" name="a" />
</div>...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
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...
|
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...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |