M
Mario Krsnic
Hello!
I have made an application where user can get reading after entering his
name and the name of his partner. I tried to save the names in the database,
in the separate table. My solution:
AccessDataSource1.InsertCommand = "INSERT INTO var(var1) VALUES ('" &
Trim(TextBox1.Text) & "')" 'his name
AccessDataSource1.UpdateCommand = "UPDATE [var] SET [var2] = '" &
Trim(TextBox1.Text) & "' WHERE [id] = (select max(id)from var)" 'her name
and then on the second page:
AccessDataSource1.SelectCommand = "select var1,var2 from var WHERE [id] =
(select max(id)from var)" 'both names
This works fine, when not more users try to work with it at the same time.
Is there better solution for such temporary values? Would it be better to
save this values locally? How to do it?
Thank you
Mario
I have made an application where user can get reading after entering his
name and the name of his partner. I tried to save the names in the database,
in the separate table. My solution:
AccessDataSource1.InsertCommand = "INSERT INTO var(var1) VALUES ('" &
Trim(TextBox1.Text) & "')" 'his name
AccessDataSource1.UpdateCommand = "UPDATE [var] SET [var2] = '" &
Trim(TextBox1.Text) & "' WHERE [id] = (select max(id)from var)" 'her name
and then on the second page:
AccessDataSource1.SelectCommand = "select var1,var2 from var WHERE [id] =
(select max(id)from var)" 'both names
This works fine, when not more users try to work with it at the same time.
Is there better solution for such temporary values? Would it be better to
save this values locally? How to do it?
Thank you
Mario