|
-
Oct 3rd, 2005, 12:49 AM
#1
Thread Starter
Member
-
Oct 3rd, 2005, 01:10 AM
#2
Junior Member
Re: Dummy datagrid?
Suggestion:
Create a dummy table where you can insert data with the condition using your textbox value. something like:
cn.execute "insert into dummytable select field1,field2 from Group where groupid='" & text1.text "'"
when the data is inserted use it as the recordsource of the datagrid. Now, you'll be using the dummytable while the user edit the data.
after the user input, on the save button execute another query that will insert the data from dummytable to Detail table.
cn.execute "insert into detail select * from group"
then delete all records at dummytable
cn.execute "delete * from dummytable"
*I didn't test the SQL statement here, what I point out is the logic.
HTH.
-
Oct 3rd, 2005, 01:35 AM
#3
Thread Starter
Member
Re: Dummy datagrid?
 Originally Posted by kenchix1
Suggestion:
Create a dummy table where you can insert data with the condition using your textbox value. something like:
cn.execute "insert into dummytable select field1,field2 from Group where groupid='" & text1.text "'"
when the data is inserted use it as the recordsource of the datagrid. Now, you'll be using the dummytable while the user edit the data.
after the user input, on the save button execute another query that will insert the data from dummytable to Detail table.
cn.execute "insert into detail select * from group"
then delete all records at dummytable
cn.execute "delete * from dummytable"
*I didn't test the SQL statement here, what I point out is the logic.
HTH.
Thanks kenchix1 for valuable inputs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|