Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

database col fill

ResolvedVersion 2003
Edited on Mon 9 Jan 2012, 12:04

Barry has attended:
No courses

Database col fill

Hi all, I have a database (over 18,000 rows) which shows the same name against different codes but they have the same postal address. What I am trying to do is put the same name against these codes with the same address other than copy & pasting the name against the codes with 18,000 it will take months to do. An example is below.

Code Names
XX12 SMITH
YY45
LL66
LL66
AA78 COURT
FF33
FF33
FF33
FF33
FF33
TT90 JAMES
TT90
HH14 HEART
HH14
HH14
RG49

Where the blanks are is where the names have to be filled in. For example SMITH also needs to be filled into the 3 rows below the name, COURT to go in the 5 rows below etc etc. Does anyone have any idea of the best way to fill in the blanks with the names? It can be in Access or Excel 2003.

Many thanks for any guidance.

Baz

RE: Database col fill

Hi Barry, thanks for your query. Take the data into Excel and split it so Column A has the codes and column B has the names.

Copy column B, so it has the same names in the same positions.

In C2 put the following formula:

=IF(B2="", C1, B2)

Hit enter then autofill down from C2

Voila!

Hope this helps,

Anthony

RE: Database col fill

Hi Anthony, I take it the copied col B goes in to col "C"? Done that anyway & put your formula in C2. Copied down the formula over 18,000 rows & it worked a treat. I can now sort out the rest of the Excel s/sheet then import it into Access where I can continue working on it.

Great.

Thanks a lot Anthony. 5 stars for you m8.

Baz



Access tip:

Change The Default Font in Access 2003

You can change the default font in Access 2003 so that whenever you create a new database your preferred font is automatically set.

To change the default font:

1.From the menu bar select Tools.
2.Click Options.
3.Go to the Datasheet tab:
4.In the Default font section select your preferred font from the list of fonts e.g. Arial.
5.Select your preferred size from the size menu e.g. 12.
6.Click Apply.

Click on the Tables/queries tab:
1.In the Query Design font section select your preferred font from the list of fonts e.g. Arial.
2.Select your preferred size from the size menu e.g. 12.
3.Click Apply.
4.Click OK.

The default font for Access has now been changed.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.