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

Detect Access Table Cahnges

Hi all,
I am trying create form which displays the data using combo
selection("PIN" Unique field). I am trying to make it check if the data
has changed and store it if it has. I and using databound for the combo
box. The problem is that when I change PIN in combo box(Which is for
naviagation). The Getchanges() function assumes that it has data
changes. How can I get rid of this problem? Any input would be
appreciated. Thanks
- kumar

'--- Code------

Me.Validate()

'Check if the "Owner" record source has been changed, If Yes Record the
Change Done

Me.OwnerBindingSource.EndEdit()

If Me.ALS_Data_ExplorerDataSet.Owner.GetChanges() IsNot Nothing Then

MsgBox("Owner Changes")

Try

Me.OwnerBindingSource.EndEdit()

Me.OwnerTableAdapter.Update(Me.ALS_Data_ExplorerDa taSet.Owner)

Catch ex As Exception

MsgBox("Owner update failed for unknown Reason - contact Kumar")

End Try

End If

'Code---------
Dec 7 '05 #1
0 725

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

Similar topics

2
by: L. Blunt | last post by:
Hopefully someone can at least point me in the right direction for more research (e.g.: correct terminology). My only previous experience was just dumping data into a database using ODBC, and that...
1
by: Jordan | last post by:
Hello ! I wish to detect the changes made and register in another table, Can I load a function that runs standalone and detects the changes himself ? Or I have to call the function in the...
4
by: vulcaned | last post by:
Hi All, Hopefully I explain this well........ In Access97 I have a form which has a tab control on it, each tab has a sub-form which is bound to its appropriate table(I'll call them 'Detail'...
2
by: eBob.com | last post by:
I've got the basics of an XML ini file working. I.E. I can stash away and retrieve user preferences. (Code below.) But how do I handle a new preference? Say I have A and B. And then I invent...
3
by: Joe Abou Jaoude | last post by:
hi, Is there a way to detect if code access security is disabled (using caspol -security off for example) I know that in COM+ you can detect if role-based security is disabled using the...
5
by: phillip.s.powell | last post by:
$sql = "SELECT IF((SHOW TABLES LIKE '$subselectTableName'), count(*), NULL) AS numRows FROM $subselectTableName"; I am trying to write a SQL statement that will tell me if a table exists or not,...
2
by: Welie | last post by:
I apologize if this is a faq. I searched for about 45 minutes and didn't find a good answer but there are many matching posts. I have a form which is based on a simple query to a linked table....
1
by: keithgell | last post by:
I needed to import large CSV files into Access, when requested by a command in a .Net interface. Because Access does not have a bulk insert command, and I already have vba macros in Access that...
4
by: Dst | last post by:
This is what i'm trying to do: I'm porting a windows app to a web app. I have a webform which will edit some data stored in a database. The data needs to be locked in the database, while editing....
4
by: Tom_F | last post by:
To comp.databases.ms.access -- I know that the recommended way to detect an update to a form, is to use the form's "Before Update" event, and putting in VBA code like: Private Sub...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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
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...

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.