first of all, i apologize, i converted my db to sql server and keep having problems so i've already posted and will keep posting more questions.
this field is part of an append query. when i run the update query the tab;e freezes and then gives me q timout error a minute or so later. without this field it updates in a milisecond
i'm almost sure this is the part that makes it go crazy. what can i do?
thank you
ETA oh yeah, the reason [RefFIeld] is in brackets and not quotes is because i'm trying to look up the value of the field in the brackets. so for example, if RefField=FileNumber then i need the value that's in the FileNumber field.
this worked in Access with an access BE, but acting out with a SQL BE
Code:
IIf(Not IsNull([SVCSETSSERVICEITEMS].[RefFIeld]),
IIf(Not IsNull([RefFIeld]),[RefText]) &
DLookUp([RefFIeld],'QFilesServices','ID=' & [QFilesServices].[ID]))
this field is part of an append query. when i run the update query the tab;e freezes and then gives me q timout error a minute or so later. without this field it updates in a milisecond
i'm almost sure this is the part that makes it go crazy. what can i do?
Code:
DLookUp([RefFIeld],'QFilesServices','ID=' & [QFilesServices].[ID])
thank you
ETA oh yeah, the reason [RefFIeld] is in brackets and not quotes is because i'm trying to look up the value of the field in the brackets. so for example, if RefField=FileNumber then i need the value that's in the FileNumber field.
this worked in Access with an access BE, but acting out with a SQL BE