473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

PROBLEMAS CONSULTA SQL CONTRA BASE DE DATOS CBD

Hola tengo el siguiente problema , me da error en un consulta que en el sql
de acces funciona correctamente pero bajo ADOCE 3.1 no.

Utilizo la libreria inthehand version 1.2 ya que necesito manejar bases de
datos cbd en un pda.

el codigo es el siguiente.Me da error en el propio open.LA CONSULTA EN ACCES
FUNCIONA CORRECTAMENTE....

rsBusqueda = New InTheHand.AdoceNet.Recordset

rsBusqueda.Open("select C.Nombre as Catalogo,Ca.Fecha as Fecha from
Catalogos C,[Catalogos entregas] Ca,Clientes Ci where Ci.[Codigo
Cliente]=Ca.[Codigo Cliente] and Ca.[Cod entrega]=C.[Codigo catalogo] and
Ci.NOMBRE ='" & Me.ComboClienteLista.Text & "'", conex)

While Not rsBusqueda.EOF

DataGrid1.DataSource = rsBusqueda

rsBusqueda.MoveNext()

End While

rsBusqueda.Close()

Si solo hago una consulta select sencilla me funciona correctamente pero en
cuento añado mas tablas en la consulta me da error.

Que puede ser..?¿?¿ estoy desesperado. Muchas gracias de ante mano.
Feb 12 '07 #1
1 3067
me parece que deberias comenzar por replantear la manera en que construyes el
string de sql. asi es, como minimo, inseguro.
prueba creando una variable de tipo string y almacenando el query en esa
variable antes de ejecutar el open. si puedes ademas utilizar un parametro en
lugar de invocar directamente el contenido del control, todavia mejor.

"Vitrium" wrote:
Hola tengo el siguiente problema , me da error en un consulta que en el sql
de acces funciona correctamente pero bajo ADOCE 3.1 no.

Utilizo la libreria inthehand version 1.2 ya que necesito manejar bases de
datos cbd en un pda.

el codigo es el siguiente.Me da error en el propio open.LA CONSULTA EN ACCES
FUNCIONA CORRECTAMENTE....

rsBusqueda = New InTheHand.AdoceNet.Recordset

rsBusqueda.Open("select C.Nombre as Catalogo,Ca.Fecha as Fecha from
Catalogos C,[Catalogos entregas] Ca,Clientes Ci where Ci.[Codigo
Cliente]=Ca.[Codigo Cliente] and Ca.[Cod entrega]=C.[Codigo catalogo] and
Ci.NOMBRE ='" & Me.ComboClienteLista.Text & "'", conex)

While Not rsBusqueda.EOF

DataGrid1.DataSource = rsBusqueda

rsBusqueda.MoveNext()

End While

rsBusqueda.Close()

Si solo hago una consulta select sencilla me funciona correctamente pero en
cuento añado mas tablas en la consulta me da error.

Que puede ser..?¿?¿ estoy desesperado. Muchas gracias de ante mano.
Feb 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vicent | last post by:
Hola: La empresa en la que trabajo tiene implantados una serie de aplicaciones basadas en MS DOS que se comunican con autómatas. Hasta la fecha las aplicaciones estaban funcionando...
3
by: Cano | last post by:
Como lo hago para tener o usar el Administrador corporativo en mi computador si el SQL esta instalado en el servidor ? lo que pasa es que en mi computador tengo instalado el Windows 2000 Server y...
0
by: -mat- filid brandy | last post by:
Hi, I collecting information about the <iframe>. I want to get a matrix of pro and contra. Cheers, -mat-
0
by: Rafa Guerra | last post by:
Este error lo da al hacer un Mergemail de msword desde msaccess. En mi caso el problema estaba en que yo creaba una barra de herramientas al comenzar la aplicación, y eso sitúa a la base de datos...
4
by: Carmen | last post by:
Saludos a to@s: Necesito ayuda. Me ocurre una cosa que no entiendo y me estoy volviendo loco. Al abrir las bases de datos e ir a crear un formulario utilizando el asistente me encuentro con que no...
15
by: Ciudad Tecnópolis | last post by:
Hola, primero que todo mil disculpas por postear una pregunta no relacionada al tema pero se que será muy útil para todos! Actualmente estoy presentando un desarrollo en .NET para una compañía y...
0
by: Monika Bibiana | last post by:
Hola a todos, trabajo con asp.net y quisiera me ayudaran con algo, necesito saber como puedo cargar un archivo ya sea de cualquier tipo a una base de datos (access para mi caso), ya se que queda un...
2
by: vntapia | last post by:
No puedo levantar una base de datos en db2 v7.2 sobre aix 4.3.3, esta base tiene dañados unos indices, deseo entrar a la base en mode de mantenimiento o administrativo para poder borrar los...
1
by: rvidal | last post by:
he estado desarrollando un carrito en ASP.NET 2.0,pero he tenido problemas con el control LOGINVIEW el cual me funcionaba, hasta se me ocurrio correr un antivirus desde entonces no he podido usar el...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.