Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can someone tell me how to manipula

Status
Not open for further replies.

R9772

Technical User
Aug 15, 2002
76
US
can someone tell me how to manipulate columns within tables through the use of vb?
 
What do you want to do? We don't want to guess what you would like.
-------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
 
this is what i have so far. however, would like to include an if statement manipulate columns within the table i just imported. is this possible?

Option Compare Database
Function doIt()
Dim mydb As Database
Set mydb = CurrentDb()
Dim strSql As String
Dim strfile As String

strfile = "c:\myFile.xls"


End Function


 
Please explain manipulate. Your current code snippet doesn't do anything so I can't determine your objective. -------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
 
the following is the complete code:

Option Compare Database
Function doIt()
Dim mydb As Database
Set mydb = CurrentDb()
Dim strSql As String
Dim strfile As String


strfile = "C:myFile.xls"

DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "myNewFile", "C:myFile.xls"



End Function


it imports a file from excel but i now want to manipulate the columns within the new table using vb. for instance if the sum of column a is > the sum of column b column c = a - b else nothing.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top