I have an update query :
vs3 = "UPDATE (wedstrijd INNER JOIN club AS a ON wedstrijd.[club a] = a.[club-id]) INNER JOIN club AS b ON wedstrijd.[club b] = b.[club-id], [schema] INNER JOIN regel ON schema.[schema-id] = regel.[schema-id] SET wedstrijd.[voorspel a] = regel.[goals-home], wedstrijd.[voorspel b] = regel.[goals-away] WHERE (((regel.[home klasse])=[a].[klasse-id]) AND ((regel.[away klasse])=.[klasse-id]) AND ((regel.[schema-id])=[schema].[schema-id]) AND ((wedstrijd.[club a])=[a].[club-id]) AND ((wedstrijd.[club b])=.[club-id]) AND ((schema.naam)=[Forms]![schema]![naam]))"
which is not working.
The bold part doesn't seem to work.. How can I make sure that the query is executed with the current opened form ? (which the bold part shoud do). I think it's a syntactic thing..
vs3 = "UPDATE (wedstrijd INNER JOIN club AS a ON wedstrijd.[club a] = a.[club-id]) INNER JOIN club AS b ON wedstrijd.[club b] = b.[club-id], [schema] INNER JOIN regel ON schema.[schema-id] = regel.[schema-id] SET wedstrijd.[voorspel a] = regel.[goals-home], wedstrijd.[voorspel b] = regel.[goals-away] WHERE (((regel.[home klasse])=[a].[klasse-id]) AND ((regel.[away klasse])=.[klasse-id]) AND ((regel.[schema-id])=[schema].[schema-id]) AND ((wedstrijd.[club a])=[a].[club-id]) AND ((wedstrijd.[club b])=.[club-id]) AND ((schema.naam)=[Forms]![schema]![naam]))"
which is not working.
The bold part doesn't seem to work.. How can I make sure that the query is executed with the current opened form ? (which the bold part shoud do). I think it's a syntactic thing..
Last edited: