sherlocked
Registered User.
- Local time
- Today, 11:04
- Joined
- Sep 22, 2014
- Messages
- 125
Greetings Experts,
I have two associated DB's that share info. While working in database A, I'd like to be able to find, delete & replace the associated record in database B.
I have a form in database A that holds a value I'd like to pass to database B in order to do this.
I can't seem to get the syntax for the deleting portion of the VBA quite right. Below is what I'm currently using, but I'm getting a syntax error. Any thoughts on what I'm doing wrong here?
The second half of my code, where I insert the replacement record, works just fine.
Appreciate any help you can give!
I have two associated DB's that share info. While working in database A, I'd like to be able to find, delete & replace the associated record in database B.
I have a form in database A that holds a value I'd like to pass to database B in order to do this.
I can't seem to get the syntax for the deleting portion of the VBA quite right. Below is what I'm currently using, but I'm getting a syntax error. Any thoughts on what I'm doing wrong here?
Code:
CurrentDb.Execute "DELETE * FROM tblRecords WHERE & 'Form_frmStatusUpdate.frmUpdateCaseData.Form.AppNo' & IN (SELECT AppNo FROM MYDATABASEPATHHERE)"
The second half of my code, where I insert the replacement record, works just fine.
Appreciate any help you can give!
