473,405 Members | 2,185 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,405 software developers and data experts.

adodc1 problems

lee123
556 512MB
im trying to connect a datagrid on a form that has two controls (adodc1 and adodc2) on it one is for the lessor table and the other is for the lease table. i tried to use an sql statement for the lease one but i have no clue what i'm doing im useing vb6 and i have a database from access (2000) where all of this is getting it's information my access database has these fields:

(in lessor table)

Expand|Select|Wrap|Line Numbers
  1. lessorID = autonumber
  2. lessor name = text
  3. address= text
  4. city = text
  5. state = text
  6. zip = text
  7. phone = text
this one is run off of adodc1

the other table i have is the lease table it has this

Expand|Select|Wrap|Line Numbers
  1. leaseID = autonumber
  2. lessorID = number
  3. rentamount= currency
  4. leaseterm=text
  5. from = date/time
  6. to = date/time
this is run off adodc2 (for the datagrid)

i have put these on one form in visual basic 6.0 i want to have the datagrid have only the information that's in the adodc1(lessors table) so when i scroll throught the lessors table the datagrid will only show there information only. pleae help me understand this

lee123
Jan 2 '08 #1
6 1826
creative1
274 100+
Hi Lee,
I think if you will tell little more about your problem it will help us understand little more such as: what the issue is? and what you are looking for ?
Kind Regards
Jan 2 '08 #2
lee123
556 512MB
Well creative1,

It's like this the problem is how can i use the "id's" from the database to connect the two adodc's
so when i add a new lessor the datagrid will update with that lessor's info. you know this is all on one form or do i have to have another form? i guess what im am looking for is to update the datagrid to retrieve the information from adodc1 only in sql or by other means if it's possible and where i can stick the code to do it, in the form or in the datagrid, or in a modual , a button where? do i dim things or what this datagrid and adodc's are tricky if you don't know anything about them. ms access is not that hard.

lee123
Jan 2 '08 #3
debasisdas
8,127 Expert 4TB
instead of using adodc use ADO code and use combobox or listbox . and passthe value for the grid from the control dynamically.
Jan 2 '08 #4
lee123
556 512MB
hey debasisdas,

can you give me an example code of this so i can understand what you mean?

lee123
Jan 4 '08 #5
debasisdas
8,127 Expert 4TB
1.select the ado library from project --> reference.
2.open the conection.
3.open the 1st recordset.
4.fill the first listbox from this recordset.
5.on the selection of the listbox open another recordset.
6.fill the 2nd lisbox from second recordset.
7.on the selection of the 2nd listbox open 3rd recordset .
8.from this recordset populate the grid control.
Jan 4 '08 #6
lotus18
866 512MB
Hi Lee123

This may help you also, click

These are the basic SQL Syntax for Access Queries

Rey Sean
Jan 4 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jerome Lefebvre | last post by:
Hello, Hope this will interest a few. I been working with a friend on the problems given out during the "International Collegiate Programming Contest" (ICPC) http://icpc.baylor.edu/icpc/ ....
14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
2
by: Ellen Graves | last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1. Installing and running stored procedures is problematic. Stored procedures I have used for years on V7 on WinNT are now failing...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
0
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my...
1
by: abhijeetroy | last post by:
Dear All.... I am doing a project where adodc1 has connected through below mentioned code. Adodc1.Recordset.Close Adodc1.Recordset.Source = "select gno,gdesc,gqty,gvalue from gntemp"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.