A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Autofill



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2004, 05:59 PM
leebartley
external usenet poster
 
Posts: n/a
Default Autofill

I have a database with Ins Company info. I have set up a combo box but would
like to have all other fields auto fill once I lookup the Insurance Company
name.
My fields are named as follows. InsIntCP for Insurance Company,
InsAddress for Address, InsCity for City, InsProv for Province and InsPostal
for Postal.

This is the code I put in Beforeupdate event.

Me.InsAddress = Me.InsAddress.Column(1)
Me.InsCity = Me.InsCity.Column(2)
Me.InsProv = Me.InsProv.Column(3)
Me.InsPostal = Me.InsPostal.Column(4)


What am I doing wrong??????

Lee

  #2  
Old December 13th, 2004, 06:27 PM
Ken Snell [MVP]
external usenet poster
 
Posts: n/a
Default

See The ACCESS Web for one way to do this:
http://www.mvps.org/access/forms/frm0058.htm

--

Ken Snell
MS ACCESS MVP


"leebartley" wrote in message
...
I have a database with Ins Company info. I have set up a combo box but

would
like to have all other fields auto fill once I lookup the Insurance

Company
name.
My fields are named as follows. InsIntCP for Insurance Company,
InsAddress for Address, InsCity for City, InsProv for Province and

InsPostal
for Postal.

This is the code I put in Beforeupdate event.

Me.InsAddress = Me.InsAddress.Column(1)
Me.InsCity = Me.InsCity.Column(2)
Me.InsProv = Me.InsProv.Column(3)
Me.InsPostal = Me.InsPostal.Column(4)


What am I doing wrong??????

Lee



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofill more than one field from a combobox Andy Roche Using Forms 3 October 4th, 2004 04:55 AM
Turning off incrementing in autofill lirael General Discussion 2 September 10th, 2004 03:16 AM
trying to delete an autofill address and am not able to do so KevOE Hig Contacts 3 August 5th, 2004 01:00 PM
Autofill alphabet series not possible in Excel? abqhusker Worksheet Functions 1 June 25th, 2004 05:11 PM


All times are GMT +1. The time now is 12:21 PM.


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