SQLScholar
Programmer
Hi all,
I have this code in a form (generated by access)
Which should all be fine.... however.....
ADLogon is in this format DOMAIN\USER. So i am getting an error which looks something like this "Incorrect syntax near '\'."
So how do i get round this? The tables need the DOMAIN\ in them. Both the forms are based on tables with the DOMAIN\ on the ADlogon.
Any ideas how to get round this?
TIA
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
I have this code in a form (generated by access)
Code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FrmUserOverides"
stLinkCriteria = "[ADLogon]=" & Me![ADLogon]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Which should all be fine.... however.....
ADLogon is in this format DOMAIN\USER. So i am getting an error which looks something like this "Incorrect syntax near '\'."
So how do i get round this? The tables need the DOMAIN\ in them. Both the forms are based on tables with the DOMAIN\ on the ADlogon.
Any ideas how to get round this?
TIA
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------