R
riccojs
I currently have created a project and all is going well. I have
written a access program to retrieve data from a DDMS System (Supplier
program). The company has asked for several enhancements and I have
been able to handle them. There is over 250,000 records and the DDMS
system does not always populate all information.
Example:
Customer: Call # Call_SQ Tech Date Problem
Jim Jones 12345 100 John 01/01/2006 No light is
Jim Jones 12345 101 on the device
Jim Jones 12345 102 and no power.
Lee Harvey 54321 100 Jan 08/04/2006 Bad wheel and
Lee Harvey 54321 101 no hard drive.
I do not have much control over the information it is all done on a
text based system and I just pull the data out daily with a Maintenance
program that I wrote. In that program I clean all the records and
create nice clean tables. There is more columns then what I am showing
but this is a start.
In the maintenance program I run several different queries to organize
the data and the final product is a table with only the info that I
need and it is in order of Call# then Call_SQ. I have a Tech column
(Text), Three Date columns (Time/Date), and a number column. I would
like to place a line in the criteria box on one of my queries that
relates to one of the columns. To do what I am about to ask, I am not
sure if it is possible that way but I know you can do it with VBA I
just can't figure it out.
What I need is code that will look at the table (TBL_USER_TABLE) and
then at each of my 5 columns (Tech_Name, SA_C_DATE, SE_C_DATE,
SM_C_DATE, Just_A_Number). For Example "John" and "01/01/2006"
needs to be copied down the column until Access finds information
already in the cell, then copy "Jan" and "08/04/2006" down
until the next entry. This is so the above table will look like this:
Customer: Call # Call_SQ Tech Date Problem
Jim Jones 12345 100 John 01/01/2006 No light is
Jim Jones 12345 101 John 01/01/2006 on the device
Jim Jones 12345 102 John 01/01/2006 and no power.
Lee Harvey 54321 100 Jan 08/04/2006 Bad wheel and
Lee Harvey 54321 101 Jan 08/04/2006 no hard drive.
Remember I have over 250,000 records and I can do this at night with my
maintenance program, so proccessor time is not an issue and please
don't be angry about the table design and information the system is
very old and I didn't write it.
Thank you for the help and code to make this happen. I am using Access
2003 and my program is to look up information only not add information
to the system
Thanks Again
John
written a access program to retrieve data from a DDMS System (Supplier
program). The company has asked for several enhancements and I have
been able to handle them. There is over 250,000 records and the DDMS
system does not always populate all information.
Example:
Customer: Call # Call_SQ Tech Date Problem
Jim Jones 12345 100 John 01/01/2006 No light is
Jim Jones 12345 101 on the device
Jim Jones 12345 102 and no power.
Lee Harvey 54321 100 Jan 08/04/2006 Bad wheel and
Lee Harvey 54321 101 no hard drive.
I do not have much control over the information it is all done on a
text based system and I just pull the data out daily with a Maintenance
program that I wrote. In that program I clean all the records and
create nice clean tables. There is more columns then what I am showing
but this is a start.
In the maintenance program I run several different queries to organize
the data and the final product is a table with only the info that I
need and it is in order of Call# then Call_SQ. I have a Tech column
(Text), Three Date columns (Time/Date), and a number column. I would
like to place a line in the criteria box on one of my queries that
relates to one of the columns. To do what I am about to ask, I am not
sure if it is possible that way but I know you can do it with VBA I
just can't figure it out.
What I need is code that will look at the table (TBL_USER_TABLE) and
then at each of my 5 columns (Tech_Name, SA_C_DATE, SE_C_DATE,
SM_C_DATE, Just_A_Number). For Example "John" and "01/01/2006"
needs to be copied down the column until Access finds information
already in the cell, then copy "Jan" and "08/04/2006" down
until the next entry. This is so the above table will look like this:
Customer: Call # Call_SQ Tech Date Problem
Jim Jones 12345 100 John 01/01/2006 No light is
Jim Jones 12345 101 John 01/01/2006 on the device
Jim Jones 12345 102 John 01/01/2006 and no power.
Lee Harvey 54321 100 Jan 08/04/2006 Bad wheel and
Lee Harvey 54321 101 Jan 08/04/2006 no hard drive.
Remember I have over 250,000 records and I can do this at night with my
maintenance program, so proccessor time is not an issue and please
don't be angry about the table design and information the system is
very old and I didn't write it.
Thank you for the help and code to make this happen. I am using Access
2003 and my program is to look up information only not add information
to the system
Thanks Again
John