Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Update Record

Hi All,

I have created UserForm in Excel and added button which will search
all the records in Access database and get the results in a Excel
userform listbox.

I dont have any problem in searching and updating the data into Access
Database.

The main problem is - Assume I have two textbox in userform 1. Name 2.
Dept

Using search option i will get the results in a listbox.

Suppose user wants to change his dept then user selects particular
name in a listbox and will
change the name.
if user updates the changes in my database I can see old data and the
new data.

I want only the new data.

Is this possible,

Please help me !

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Update Record

use a combobox instead of list box. It works the same except the combobox
allows a manual entry.

" wrote:

Hi All,

I have created UserForm in Excel and added button which will search
all the records in Access database and get the results in a Excel
userform listbox.

I dont have any problem in searching and updating the data into Access
Database.

The main problem is - Assume I have two textbox in userform 1. Name 2.
Dept

Using search option i will get the results in a listbox.

Suppose user wants to change his dept then user selects particular
name in a listbox and will
change the name.
if user updates the changes in my database I can see old data and the
new data.

I want only the new data.

Is this possible,

Please help me !

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Update Record

hoe is the database refreshed with changed data? seems to me that one way
would be to re-populate the list boxes

wrote in message
...
Hi All,

I have created UserForm in Excel and added button which will search
all the records in Access database and get the results in a Excel
userform listbox.

I dont have any problem in searching and updating the data into Access
Database.

The main problem is - Assume I have two textbox in userform 1. Name 2.
Dept

Using search option i will get the results in a listbox.

Suppose user wants to change his dept then user selects particular
name in a listbox and will
change the name.
if user updates the changes in my database I can see old data and the
new data.

I want only the new data.

Is this possible,

Please help me !

Thanks in advance


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Update Record

Yes I agree, but old record in my database remain, I dont want that
old data once it is updated.


On May 17, 2:59*pm, joel wrote:
use a combobox instead of list box. *It works *the same except the combobox
allows a manual entry.

" wrote:
Hi All,


I have created UserForm in Excel and added button which will search
all the records in Access database and get the results in a Excel
userform listbox.


I dont have any problem in searching and updating the data into Access
Database.


The main problem is - Assume I have two textbox in userform 1. Name 2.
Dept


Using search option i will get the results in a listbox.


Suppose user wants to change his dept then user selects particular
name in a listbox and will
change the name.
if user updates the changes in my database I can see old data and the
new data.


I want only the new data.


Is this possible,


Please help me !


Thanks in advance


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Update Record

You need to use a combobox, but you can also have a routine that after a new
entry is entered that would remove the old entry(s) that you want to remove.
Use a combobox ONChange function to remove older entries. Kepp a copy of the
old values hidden so you can figure out the new entry. One trick is to have
a hidden box on the userform that keeps the old values. Then compare the
hidden box to the visible box to figure out the new value that is added. so
you would have Combobox1.visible = true and combobox2.visible = false.

" wrote:

Yes I agree, but old record in my database remain, I dont want that
old data once it is updated.


On May 17, 2:59 pm, joel wrote:
use a combobox instead of list box. It works the same except the combobox
allows a manual entry.

" wrote:
Hi All,


I have created UserForm in Excel and added button which will search
all the records in Access database and get the results in a Excel
userform listbox.


I dont have any problem in searching and updating the data into Access
Database.


The main problem is - Assume I have two textbox in userform 1. Name 2.
Dept


Using search option i will get the results in a listbox.


Suppose user wants to change his dept then user selects particular
name in a listbox and will
change the name.
if user updates the changes in my database I can see old data and the
new data.


I want only the new data.


Is this possible,


Please help me !


Thanks in advance



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
record update VBA form Roy Gudgeon[_2_] Excel Discussion (Misc queries) 0 March 15th 10 04:27 PM
On Duplicate, update record MikeD1224 Excel Discussion (Misc queries) 1 April 2nd 09 10:19 PM
Update a record in the recordset OverAC[_17_] Excel Programming 2 April 7th 06 09:42 AM
update record in mdb.. sal21[_90_] Excel Programming 1 December 9th 05 01:18 PM
Code to Update a Record No Name Excel Programming 1 January 29th 04 10:02 PM


All times are GMT +1. The time now is 03:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"