abbaddon223
Registered User.
- Local time
- Today, 07:40
- Joined
- Mar 13, 2010
- Messages
- 162
Hi,
I'm pretty familiar with getting values from a table via Dlookup. What I want to do is almost the reverse if possible?
I'm declaring a variable as follows:
Dim Ref as string
Ref = [lead_id]
This is from a form.
What I'd like to be able to do is go to the table
I'm pretty familiar with getting values from a table via Dlookup. What I want to do is almost the reverse if possible?
I'm declaring a variable as follows:
Dim Ref as string
Ref = [lead_id]
This is from a form.
What I'd like to be able to do is go to the table
- , reference the lead ID in the table via the variable then change the field [status] to "INCALL".
Can this be done in a similar way to Dlookup?
Thank you for any assistance!
UPDATE - here is the code I am trying to use
Dim ref As String
ref = [lead_id]
Dim MySQL As String
MySQL = "UPDATE vicidial_list SET"
MySQL = MySQL & "vicidial_list.status = 'INCALL' "
MySQL = MySQL & "WHERE (((vicidial_list.status)= Ref))"
DoCmd.RunSQL MySQL
Which gives me an update clause error
Last edited: