Microsoft
Software
Hardware
Network
Question : access 2000 vb update more than one record with thevalue of a bound textbox
Hi,
I have a textbox bound to a field in one table, the possible values a user can enter are Y or N indicating whether a physician can be contacted. This works fine (see related question), but due to the way the DB is [ill]designed, there's more than one record in the table with the same id for the physician.
My question is, can I write a sql query in the afterUpdate event of the textbox and then execute the query to update the Can_Contact field in the table for all the records with the physicianID? something like
update canContact = txtCanContact where providerID = Me!txtProviderID ...
and the doCmd?
The data source for the form is a query and in this event I'd be executing a different query. Is that possible?
Thanks!
Answer : access 2000 vb update more than one record with thevalue of a bound textbox
Like this:
DoCmd.SetWarnings (0)
DoCmd.RunSQL "Update TableName Set canContact = " & Me!txtCanContact & " Where providerID = " & Me!txtProviderID
DoCmd.SetWarnings (-1)
Random Solutions
Sharepoint not sharing port80 with IIS Default WEbsite
AS3: TweenLite onComplete fires at begining instead of at the end of the tween...
executing functions from update query
access shell variables in egrep
ASP pages don't show in some places in our intranet
How Do I Deternine the Cause of a Faulting Application (msaccess)/module (msvcrt.dll)?
Delete network printer(s) using vbs or WSH
Mysql Process shows large number of locked processes
Is there a way for Javascript to detect what characters are being used in a form?
database and table is utf8 and utf_general_ci. But unicode insertion not working