I copied some code from a previous post. I have a combo box to find the client. It shows names and I have LstBoundfield to Clientnbr and the client number changes to the record it selects, but I want all the fields to be based on the record it selects.
This is the code I am using. ClientLookup is my combo box.
TblRASClients is my table
<SCRIPT language=vbscript event=onchange for=ClientLookup>
<!--
Dim rs
Set rs MSODSC.DefaultRecordset
rs.Find "[TblRASClients] = "" & document.all.item("ClientLookup").value & "",0,1,1
I also need to give a message if they click delete and there is a date in the record. I deleted the delete button and added my own, but I do not know the code for the message and stopping the delete.
Thank you
This is the code I am using. ClientLookup is my combo box.
TblRASClients is my table
<SCRIPT language=vbscript event=onchange for=ClientLookup>
<!--
Dim rs
Set rs MSODSC.DefaultRecordset
rs.Find "[TblRASClients] = "" & document.all.item("ClientLookup").value & "",0,1,1
I also need to give a message if they click delete and there is a date in the record. I deleted the delete button and added my own, but I do not know the code for the message and stopping the delete.
Thank you