Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Adding New Records To Excel Database..

Sylvain

Use this concept

Dim lrow As Long

lrow = Cells(Rows.COUNT, "A").End(xlUp).Offset(1, 0).Row
Cells(lrow,1) = Combobox1.value ' column A data
Cells(lrow,2) = Textbox1.Text ' column B data

where the numbers represent columns 1 (A) and 2 (B).
lrow represents the first blank row at the bottom of your data.
Expand to suit your needs.
You can put the code in the module that opens the form, or place it in the
event macro of the form elements.

You can even code for Option buttons and Check boxes.

steve

"Sylvain" wrote in message
...
Hi all,

is there a method in VB to add a new record to an excel
data base while using my own form?. ( basically in the
same fassion as the builtin data form from the Data menu )

Thanks

Sylvain.



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
adding fileds to an excel database using vairable criteria westcoastr Excel Discussion (Misc queries) 1 January 26th 10 05:18 PM
Records Database Lane Excel Discussion (Misc queries) 2 November 21st 08 07:05 PM
Extracting Records From Excel Database thorvision Excel Discussion (Misc queries) 5 December 1st 05 06:09 AM
Database records from excel templates BeeJay Excel Discussion (Misc queries) 4 June 22nd 05 03:02 PM
Adding New Records To Excel Database.. Tom Ogilvy Excel Programming 1 August 18th 03 08:47 PM


All times are GMT +1. The time now is 02:04 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"