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

How to show a promt for any change detected in excel sheet

i have a project in which we have a database as backend and excel as front end in it first we allow user to access the data of MS Access in excel and update it then we get it saved at some place. now administrator needs help that he wants a prompt every time for the changes that have been made in data...
Jun 9 '10 #1
6 1566
There are some methods to do this after any events :

Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand acCmdSaveRecord
or :

Expand|Select|Wrap|Line Numbers
  1. DoCmd.Save acTable, "TabelName"
also, you can use this code with above:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand acCmdRefresh
may it help.

Best Regards,

Ahmed Tharwat (Medo)
Jun 9 '10 #2
Thanx for ur help

But can u make it more clear. I am new to VB. I also need some suggestion for the case that if we have to copy any excel sheet into another excel sheet of one workbook to another...
Jun 9 '10 #3
what i understand, you have a excel file linked with ms access and you need after any change in ms access are changed in excel. is that true?

if yes:
The above code is the correct answer for that ,
just you can make event after you exit from the record
in after update event but the code

Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand acCmdSaveRecord .
  2. DoCmd.RunCommand acCmdRefresh 
or

Expand|Select|Wrap|Line Numbers
  1. DoCmd.Save acTable, "TabelName" 
  2. DoCmd.RunCommand acCmdRefresh 
if no:
You can attach the example and explain what do you need.

Best Regards,
(Medo)
Jun 9 '10 #4
Thanx for these solutions sir,
But i just want to copy content of one excel sheet to another new excel sheet then the administrator will do the rest so tell me how i can copy content of one sheet to another
Jun 9 '10 #5
you can use this code from excel vba editor

Expand|Select|Wrap|Line Numbers
  1. Sub CopySheet()
  2.    Application.ScreenUpdating = False
  3.    Workbooks("Book2").Sheets.Add.Name = "Copied"
  4.    Cells.Copy
  5.    Workbooks("Book2").Sheets("Copied").Range("A1").PasteSpecial
  6.    ActiveSheet.DrawingObjects.Copy
  7.    Workbooks("Book2").Activate
  8.    ActiveSheet.Paste
  9.    ActiveSheet.Cells.Copy
  10.    Range("A1").PasteSpecial xlPasteValues
  11.    ThisWorkbook.Activate
  12.    Application.CutCopyMode = False
  13.    Application.ScreenUpdating = True
  14. End Sub
or you can use sql update to update sheet2 as sheet1 from ms access.

attach the sample to understand what do you need.

i`m very sorry my english is very bad.
Jun 9 '10 #6
No issues even my english has a lot of problems....:)
Jun 9 '10 #7

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

Similar topics

5
by: Rajiv | last post by:
HI ALL, actually , i m working in a company having large number of employee , i have two userid and password . on id is from admin group(id given to me by technology manager) of the server and...
9
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then...
1
by: Vanajakshi Pidatala | last post by:
Hello, I am trying to show data in dataset in to an excel sheet(ASP.NET/VB.NET). I AM DOING THIS ON SERVER(IIS SERVER) WHICH HAS EXCEL VERSION 9. I COULD ADD REFERENCE TO EXCEL VERSION 9 AND...
1
by: ramesh_tankala | last post by:
hi... i generate reports in excel sheet through vb6, How i can change the excel sheet page settings through vb6
4
by: laurasesma18 | last post by:
I've got a convertion tool with Access 2003. It imports an excel sheet into the data base and with the records in it creats different outputfiles. Its programmed with VBA. Now what I need is, in...
12
by: forrestgump | last post by:
I am currently trying to create VBA to send a specified excel sheet to varied email sources. I currently have the code below which sends the attachment in an email to a specified source e.g....
0
by: satenova | last post by:
Hello Friends, I am newbie when it comes to vb.net and i need to import excel sheet into access db using vb.net application. Here is the code i use for now to upload excel sheet and it works...
1
by: zcabeli | last post by:
hello, i've got XML file which contain the following records as shown in example below. <group name="ddd" > <param name="abc" def="0xc" tag="1" encapsulated="1" PATH...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
1
by: tarekz | last post by:
I have a table on an SQL server 2005, I would like to change the value of one field to another based on an excel sheet value. In other words, if the value in the SQL table matches the value in...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.