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

Navigating through records

This is my first post to this group. I am currently working on a project
for my Intermediate vb.net class. My project is a movie rental program,
which involves displaying customer records with transaction details. The
way it is set up now is that I have a group of bound text boxes to display
the customer information, and a datagrid to display the transaction details.

Also, I have a label to display the totals for each customer's transaction.
The problem that I am having is I don't know which event to use to "capture"
the current customer as I cycle through the records, so that I can
effectively target the childrows of the current customer.

If you need to see code, please let me know in the reply. Thanks for all
replies.

Regards,
Martin Williams
Nov 20 '05 #1
3 1565
Cor
Hi Martin,

There is always a kind of default event generated when you double click on
your form on a control (textbox or whatever).

Mostly you can use that to capture the events.

In most cases is that the click event or the index changed event.

But I think that using a button or a menuItem will satisfy the user better,
because by using that he does an impliciet action and understood better what
happens.

If this is not the answer, or if I did misunderstood you, please reply?

Cor
This is my first post to this group. I am currently working on a project
for my Intermediate vb.net class. My project is a movie rental program,
which involves displaying customer records with transaction details. The
way it is set up now is that I have a group of bound text boxes to display
the customer information, and a datagrid to display the transaction details.
Also, I have a label to display the totals for each customer's transaction. The problem that I am having is I don't know which event to use to "capture" the current customer as I cycle through the records, so that I can
effectively target the childrows of the current customer.

If you need to see code, please let me know in the reply. Thanks for all
replies.

Nov 20 '05 #2
Thank you for your reply.

Currently, I use toolbar buttons (first, previous, next, and last) to cycle
through the customer records. What I was looking for is some way to examine
the change in the bound value of one of the text boxes, whether it's the
customer ID or the last name, so I can target that in the code for getting
the child records - in order to continually update my subtotal and totals
textboxes.

Regards,
Martin Williams

"Cor" <no*@non.com> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...
Hi Martin,

There is always a kind of default event generated when you double click on
your form on a control (textbox or whatever).

Mostly you can use that to capture the events.

In most cases is that the click event or the index changed event.

But I think that using a button or a menuItem will satisfy the user better, because by using that he does an impliciet action and understood better what happens.

If this is not the answer, or if I did misunderstood you, please reply?

Cor
This is my first post to this group. I am currently working on a project for my Intermediate vb.net class. My project is a movie rental program,
which involves displaying customer records with transaction details. The way it is set up now is that I have a group of bound text boxes to display the customer information, and a datagrid to display the transaction

details.

Also, I have a label to display the totals for each customer's

transaction.
The problem that I am having is I don't know which event to use to

"capture"
the current customer as I cycle through the records, so that I can
effectively target the childrows of the current customer.

If you need to see code, please let me know in the reply. Thanks for all replies.


Nov 20 '05 #3
Cor
Hi Martin,

When you use the changed-value event of the texboxes you user become mad,
becose it fires with every keypush.

But maybe you mean something like this (roughly copied and changed from a
program, so watch errors).
\\\
dim cmaMyCurrency As CurrencyManager
Me.combobox1.BegindUpdate()
Me.combobox1.DisplayMember = "ident"
Me.textbox1.DataBindings.Clear()
cmaMyCurrency = CType(Me.BindingContext(ds.Tables(0)), CurrencyManager)
Me.combobox1.DataSource = ds.Tables(0)
Me.textbox1.DataBindings.Add(New Binding("Text", ds.Tables(0), "lastname"))
Me.combobox1.EndUpdate()
///
The name in the textbox is the name in the current position from the
dataset, which is the same as the index from the combobox.

I hope this helps something?

Cor
"Martin Williams" <ma*******@comcast.net> schreef in bericht
news:q9********************@comcast.com...
Thank you for your reply.

Currently, I use toolbar buttons (first, previous, next, and last) to cycle through the customer records. What I was looking for is some way to examine the change in the bound value of one of the text boxes, whether it's the
customer ID or the last name, so I can target that in the code for getting
the child records - in order to continually update my subtotal and totals
textboxes.

Regards,
Martin Williams

"Cor" <no*@non.com> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...
Hi Martin,

There is always a kind of default event generated when you double click on
your form on a control (textbox or whatever).

Mostly you can use that to capture the events.

In most cases is that the click event or the index changed event.

But I think that using a button or a menuItem will satisfy the user

better,
because by using that he does an impliciet action and understood better

what
happens.

If this is not the answer, or if I did misunderstood you, please reply?

Cor
This is my first post to this group. I am currently working on a

project for my Intermediate vb.net class. My project is a movie rental program, which involves displaying customer records with transaction details. The way it is set up now is that I have a group of bound text boxes to display the customer information, and a datagrid to display the transaction

details.

Also, I have a label to display the totals for each customer's

transaction.
The problem that I am having is I don't know which event to use to

"capture"
the current customer as I cycle through the records, so that I can
effectively target the childrows of the current customer.

If you need to see code, please let me know in the reply. Thanks for all replies.



Nov 20 '05 #4

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

Similar topics

17
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset...
1
by: Matt | last post by:
I have a project where I need to have navigation buttons. Now I got them working but I found a problem that occurs when there are records deleted from the DB. The DB I am accessing has an ID column...
1
by: Mary | last post by:
I want to be able to create a web form that contains textboxes, that I can nagivate thru ie:first, next , previous and last. As well as diplaying the number of records and what record I am...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
1
by: Hexman | last post by:
Hello All, What I'm trying to do is update a child record using a parent-child relation. I want to find out if it is faster than than doing multiple selects. Anyways, I've created a dataset...
0
by: Ohad Weiss | last post by:
Hi all, I've once asked about that topic. but didn't get an answer. I have a dataset based on 4 tables, which have relation between them. The main table presented to the user on textboxes...
0
by: Ohad Weiss | last post by:
Hi I have a problem with two textboxes binded to a dataset, based on paren table, and table for the child records. I can navigate between the master records (and of course the child records...
2
by: DanAusitn | last post by:
Good morning people, i have made a program which handles & manages stock. to navigate through the records i have assigned command buttons to control the data control, however in some of the catagorys...
2
tuxalot
by: tuxalot | last post by:
Strange occurrence and I've looked everywhere and can't seem to find any explanation. Using A07, when I navigate records using the built-in buttons, the text in my labels darkens increasingly while...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.