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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JayRo71

    docmd.TransferText not importing a number field

    It is unusual that I solve my own questions, but I did. It turns out that even though the number was showing as a short decimal when opened in excel, it was actually a Large Number. So my data type was wrong. It only took me 4 hours to figure it out. I am leaving this post incase anyone else...
  2. JayRo71

    docmd.TransferText not importing a number field

    I have the following line of code... DoCmd.TransferText acImportDelim, "Chart Import Specification", "tblMeterReads", fileName, True, , 1252 I can manually run chart import specification with no problem. When I use DoCmd TransferText it imports all of the records, but skips a field that...
  3. JayRo71

    Saved Imoorts problem with file name

    Andy, I have run into a wall and will definitely take your advice. If I can bring the csv into an access table using vba, it would solve a lot of problems. My only concern is that tblImportTemp is the source of an append query. It should not make any difference though. I will report back...
  4. JayRo71

    Saved Imoorts problem with file name

    dhookum, you definitely pointed me in the right direction. In fact, I went back to the first in the series of articles and I am very intrigued after reading a couple of paragraphs... The first article is found at...
  5. JayRo71

    Saved Imoorts problem with file name

    I will check it out... Thank you!
  6. JayRo71

    Saved Imoorts problem with file name

    Andy, Great suggestion from a troubleshooting standpoint. Abandoning the saved import and doing a new step by step import would be faster though. dhookum, I will see if I can find out how to access system tables. I just setup a VBA import procedure that works great, except I get errors...
  7. JayRo71

    Saved Imoorts problem with file name

    I tried different ways of renaming the xlsx file and none worked. One thing that stands out to me is that Acceess defaults to the original file name when creating the table during the import. I am not at all sure where access is getting that information as the table is already renamed before I...
  8. JayRo71

    Saved Imoorts problem with file name

    Hi, My work flow is to download a table as a csv from a third party and then save it as an xlsx file. I give it a new filename when I do a saveas xlsx, because the default filename from the third party has special characters in it that are not compatible with access import. The import works...
  9. JayRo71

    Unable to sort date field

    dhookum, you were correct. I had one record that had no data and it that is what caused the problem. Thank you! Andrzejek, I see where you are going with split() and I am happy you showed that to me. I am going to toy around with split() as this may help in future datasets, I come across any...
  10. JayRo71

    Unable to sort date field

    dhookum, I think you bring up a great point. Maybe there is a field that is not populated. I will check. Thank you! Andrzejek. I will try your suggestion and write back. Thank you!
  11. JayRo71

    Unable to sort date field

    I have a field [Bill Period] as short text. The data is provided to me as such, "11/07/22-12/07/22", which represents a start date and an end date. I extracted the start day and formatted it as a date using the following expression. StartDate: CDate(Left([tblWegoWiseSpikes]![Bill...
  12. JayRo71

    Select records on subform using a combo box with a twist

    Okay, I think with my new mindset, this should be pretty easy. The goal is to get tblProperties > tblBuildings > tblSpikes normalized. Those three tables alone will make up the database, unless of course I decide to create a separate table for each utility. If I keep my eye on the goal, it...
  13. JayRo71

    Select records on subform using a combo box with a twist

    I am using update in tblSpikes because it has no values in the fkeybuildings field. I need to update those values.
  14. JayRo71

    Select records on subform using a combo box with a twist

    I think I finally figured out where I am going wrong. I need to do more with the original temporary dataset to assign the correct building id's to the fkeyBuildings field in the spikes table as I am appending the new records to tblSpikes. This way, tblProperties, tblBuildings and tblSpikes...
  15. JayRo71

    Select records on subform using a combo box with a twist

    The final query that I posted uses only spike and buildings table to assign building id to the building foreign key in tblSpikes. In that last query, tblProperties is not used and it works.. Is this one finally correct?
  16. JayRo71

    Select records on subform using a combo box with a twist

    This also seems to work... UPDATE tblBuildings INNER JOIN tblSpikes ON (tblSpikes.Property = tblBuildings.Property) AND (tblBuildings.Buildings = tblSpikes.Buildings) SET tblSpikes.fkeyBuilding = [tblBuildings].[pkeyNewBuildingID];
  17. JayRo71

    Select records on subform using a combo box with a twist

    Thank you for the very important correction. I am referring to the excel file that was a csv and I do plan to take your advice and not put it in excel at all and I will stop referring to it as a table. These are the tips that I really appreciate because if I learn to speak the language, it...
  18. JayRo71

    Select records on subform using a combo box with a twist

    Thanks for pointing me back to the post. I completely understand the structure and understand its necessity and I find it very easy to create a normalized database if I am creating the records. I would select a property from a property dropdown and a building from the building dropdown and all...
  19. JayRo71

    Select records on subform using a combo box with a twist

    I thank you for the generous amount of time you have spent helping me to figure this out. While I am unable to accomplish the perfect database, it appears to be accomplishing what I set out to do, which is to create a worksheet for each spike that will allow me to report or list a history of...
  20. JayRo71

    Select records on subform using a combo box with a twist

    Still working on getting account numbers. That would make everything much easier as they should be unique, even though from multiple utilities. The solution there might be to add a prefix to the account numbers that describes the utility provider. Ie. NG12345 for National Grid. and EV12345...

Part and Inventory Search

Back
Top