20. oktober 2003 - 12:29Der er
6 kommentarer og 1 løsning
Access Frontend mod SQL Server 2000
Jeg har et problem med en Dlookup, det virker godt nok hvis det databaseprojektet åbnes i OfficeXP, men i Office2000 fejler den: 'If Not IsNull(DLookup("id", "dbo.daglig_afhentning", "fid=" & CurID & " And i_dato<='" & d & "' And s_dato>='" & d & "'")) Then 'CurdagligID = DLookup("id", "dbo.daglig_afhentning", "fid=" & CurID & " And i_dato<='" & d & "' And s_dato>='" & d & "'") 'End If
fejlbeskrivelsen i Office2000 lyder:
Der opstod et problem ved adgang til en egenskab eller metode i OLE-objektet
All I can suggest is that you try changing your dlookup slightly to see if it helps. There are a number of things which dont seem to work as expected with projects in Access 2000
I also see you are making the same dlookup twice
Try dim MyVar as Variant MyVar = DLookup("id", "daglig_afhentning", "fid=" & CurID & " And i_dato<='" & d & "' And s_dato>='" & d & "'")
I checked that d contains a value, and it does. I also checked that the dateformat's was similar, they are. I'll try out your surgestion on myvar today. tuesday that is.
It was an date handling issue, thanks for your effort.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.