Excel or Access as database

zaahir

Board Regular
Joined
Oct 11, 2006
Messages
55
Hi
I need to create a database or a sheet acting as the database. in which i need to add and be able to retrieve this data. I wish to add making use of textboxes & and retrieve making use of listboxes.
Please help me with the required code, to connect to the database, add to the database in the various fields and then retrieving via the listboxes.
Please Help!! :rolleyes:
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You are asking someone to build you an entire database system. You need to either break this down into smaller parts, or give significantly more detail than you give.

This is a forum for helping people with problems, not a forum for doing peoples projects for them.
 
Upvote 0
hey
Allow me to rephrase. The code i use to move the textbox data to the spreadsheet does not only move the data bt the entire textbox. hence i asked for help btw access and excel.
If you can pls help me so i can move onle the data in a userform to a cell in a spreadsheet.
Regards
 
Upvote 0
to move data from a userform to a spreadsheet, use this code behind the click_event of a command button on the form

Code:
Sheets("Sheet1").cells(1,1) = me.textbox1.text

This will move the text from the textbox called textbox1 on your userform into cell A1 on the sheet "Sheet1"

You can change the destination cell by using numbers. So it would look like so:

Code:
Sheets("Sheet1").cells(row,col)

where row and col are numbers pertaining to the row and column number you wish to input the data onto.

Hope this helps

Patrick
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top