473,434 Members | 1,541 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,434 software developers and data experts.

How do find and present a form from a table.

Max
If you don't want to read the drivel in my main message body here is the
question at the end. How do you find a string in a column and make the
BindingNavigator Navigate to the correct row?? Thanks, --max

I added a table (logouts) to a form from the datasource. This added the
LogoutsBindingNavigator, LogoutsBindingSource, and LogoutTableAdapter.

This is all find and dandy, now I want to find a record without scrolling to
the record. Any ideas how??

I put a textbox and button on the BindingNavigator, and search the table for
the string in the textbox but the row index in the Table IS NOT the row that
needs to be presented. I was looking through what is available from
Me.Dataset1.Logouts (probably created when I dropped the Logouts table on the
form) and I found a functional reference FindByName (name is a field in
Logouts) this returns a LogoutsDataRow. Okay, I can do that, and

Dim lor as LogoutsDataRow = Me.Dataset1.Logouts.FindByName("Smith")

returns the correct row.

But how do I take this information and make the BindingNavigator go to the
correct row??

In the immediate window if I do
?lor

I get amoung other things

....
Log_Out_Date: #4/24/2006#
newRecord: 101
ObjectID: 110
oldRecord: 101
....

ObjectID appears to be the index of the row I find when looking through the
Logouts table, but IS NOT the recordnumber to give to the
BindingNavigators.Position property. But the ObjectID is! but it also looks
like newReocrd, oldRecord and ObjectID ARE NOT available.

So how do you find a string in a column and make the BindingNavigator
Navigate to the correct row??

Thanks,
--max
May 11 '06 #1
0 928

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

Similar topics

7
by: murrayatuptowngallery | last post by:
Hello: I previously posted a question about how to do populate an html table dynamically with results from JavaScript Math and basic math. Dr Clue responded and this started the learning curve....
0
by: HK | last post by:
Hello, I am new to access/sql-developement and have the follwing problem: What I finally want, is to present within a form the results of a query, that are probably read-only PLUS a field...
8
by: jquest | last post by:
Hi Again; I have had help from this group before and want to thank everyone, especially PCDatasheet. My database includes a field called HomePhone, it uses the (xxx)xxx-xxx format to include...
0
by: Jerry | last post by:
Below is ALL the code for all the databases... Here's the problem: I callup the aspx file in IE and the form comes up just fine. When I select a person to update, I get the subject error. ...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
27
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
6
by: rcamarda | last post by:
Hello, I need to find students that have 4 consecutive absences. When a student is absent 4 times in a row, they can be dropped from the class. My class attendance file contains each attendance...
1
by: kraj123 | last post by:
Hi, How to Find ,if already a environment variable is set in hash table in perl. Actually i want to check if a environmental variable in perl script, which is present in oracle database has...
0
natalie99
by: natalie99 | last post by:
Hey people! Being so lacking in access knowhow I have turned to good old 'asking the smart people' again! I need to create a query or lookup table (although I have had zero success with lookups...
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:
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
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...
1
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.