I have a dabase that I"m working with. It has a "% Complete" as a column name, the problem is that I can't reference that name, it's giving me an error problem even if I included brackets in between. Ay Suggestions?
Yes, that's what I tried, actualy the way I'm doing it is by importing data from ms project. similar to this. rstask.[% Complete], for all the other columns it works expect this one.
Can you post more of your code? If you're using:
rstask.[% Complete]
to pull the data using a recordset object, perhaps you can try: rstask("% Complete")
which is equivalent to: rstask.Fields("% Complete")
which is equivalent to: rstask![% Complete]
Thanks dcx693, I was able to call the column from project but the problem now is that I can't retrieve anything, maybe because % complete is a calculated column in ms project.
a.sinatra : Maybe you should contact microsoft and have them use a better naming convention. % Complete is a column in MS Project, basically it calculates percent complete data from start and end dates for the tasks.
Sorry I forgot to include part of the code: here it is:
rsTask!TaskID = tsk.ID
rsTask!TaskName = tsk.Name
rsTask!TaskStart = tsk.Start
rsTask!TaskEnd = tsk.Finish
rsTask!Notes = tsk.Notes
I was able to call the column from project but the problem now is that I can't retrieve anything, maybe because % complete is a calculated column in ms project.
Dcx,
I'm so sorry for returing late, but I meant to say that the code is working fine but when I run it the % column is blank, meaning I'm not getting any data back from ms project, I think because % column is a calculated column which means like it comes from four different columns. Basically it's not static. thanks.