Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Sobre el recordset.movefirst

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
!00000 - 22 Jul 2007 12:06 GMT
Si el nombre es normal sin comillas me lo coge recordset.movefirst "nombre='
" & strnombre & "'"
pero cuando pongo Brian O'Neal se vuelve loco con tres '

Como se resuelve esto para que valga para todos los casos

GRACIAS AL GRUPO Y A TOD@S
James A. Fortune - 23 Jul 2007 03:46 GMT
> Si el nombre es normal sin comillas me lo coge recordset.movefirst "nombre='
> " & strnombre & "'"
[quoted text clipped - 3 lines]
>
> GRACIAS AL GRUPO Y A TOD@S

"nombre=" & Chr(34) & strnombre & Chr(34)

o

"nombre=" & """" & strnomber & """"

Por ejemplo,

MsgBox (DLookup("[telephono]", "[miTabla]", "[nombrePasado] = " & """" &
strnombre & """"))

elRecordset.MoveFirst "nombre = " & """" & strnombre & """"

elRecordset.MoveFirst "nombre = " & Chr(34) & strnombre & Chr(34)

Si no tiene  "  en el nombre, pero  '  es possible, este es O.K.

James A. Fortune
MPAPoster@FortuneJames.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.