ByNary010101
Programmer
I am absolutely stumped and am not even sure how to word this question but here goes:
I am building an application that needs to be VERY dynamic. How can I make a Function receive a dynamic table name as well as dynamic field names to be used in Select, Insert, and Update statements??
Some background:
My application needs to let end users create different installation types (Desktop, Laptop, Printer, Scanner, etc) and enter the different criteria that is required to be filled in by other end users:
(As an example)
Desktop and Laptop would need something along the lines of:
ECN (Equipment Control Number)
MultiUser Password
UserId
Monitor Type
Keyboard
Mouse
Printer would need:
ECN
ECN of Attached PC
IP Address
Unix Queue
Scanner would need:
ECN
ECN of Attached PC
If down the road they need to create an Intall type for PDA's the user would need to define criteria such as:
ECN
ECN of Users PC
Bluetooth
Cradle
I want to be able to use 1 Select function, 1 Update function, and 1 Insert function to handle all situations; I need them to be able to take in a table name as well as all of the defined fields to be used in the DML statements...can anyone help??
I am building an application that needs to be VERY dynamic. How can I make a Function receive a dynamic table name as well as dynamic field names to be used in Select, Insert, and Update statements??
Some background:
My application needs to let end users create different installation types (Desktop, Laptop, Printer, Scanner, etc) and enter the different criteria that is required to be filled in by other end users:
(As an example)
Desktop and Laptop would need something along the lines of:
ECN (Equipment Control Number)
MultiUser Password
UserId
Monitor Type
Keyboard
Mouse
Printer would need:
ECN
ECN of Attached PC
IP Address
Unix Queue
Scanner would need:
ECN
ECN of Attached PC
If down the road they need to create an Intall type for PDA's the user would need to define criteria such as:
ECN
ECN of Users PC
Bluetooth
Cradle
I want to be able to use 1 Select function, 1 Update function, and 1 Insert function to handle all situations; I need them to be able to take in a table name as well as all of the defined fields to be used in the DML statements...can anyone help??