Results 1 to 7 of 7
  1. #1
    willmafingerdo is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    108

    Data wont pull on my quries after database work..


    Hello,
    I had some issues w/ a database and ended up changing the data type of two fields on two joined tables from number to short text. now any data after the change wont pull on my query. the changes took effect after 9-16-19, so if i run the query's for anything prior to that date the data will populate but anything after that the querys show blank. I only changed the two fields, why is that stopping all the other data from populating? my skill is about at the advanced beginner level.. i have tried everything i can think of and im not sure what else to do.. any suggestions would be appreciated. Below is my query, the table tbl_Data_OfficeNames & OfficeName on tbl_EmployeeData_EODinfo table are the two that were changed.

    Click image for larger version. 

Name:	Capture.JPG 
Views:	28 
Size:	176.4 KB 
ID:	39823

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    What do you mean by changed both fields from number? OfficeTitle could not have been number type.

    Do you have lookups built in tables?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    willmafingerdo is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    108
    they were both number data types, i changed them to short text. yes there is a dropdown menu based off the office name table. I made this database like 5 years ago and havent really worked on it since so im a little fuzzy on everything i did when i made it.. I cannot post the database, this is a live DB we use at my work.

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,418
    what are 'they'? which fields did you change the datatype?

    I suspect you've been using lookups in a table and where they used to connect on ID, you are now connecting on text - but you haven't updated the existing records in the child table to link to the text value in the parent field, they are still a number

  5. #5
    willmafingerdo is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    108
    The table tbl_Data_OfficeNames field OfficeTitle and tbl_EmployeeData_EODinfo field OfficeName are the two that were changed. do i need to delete the field off of my data entry form and put the new OfficeName field back onto the form?

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,418
    'title' and 'name' imply text. so what did you change the type from/to?

    Based on your diagram I would expect OfficeName to be called OfficeID and be a long datatype and link to the officeID field in tbl_Data_OfficeNames

  7. #7
    willmafingerdo is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    108
    I went into my main form and updated the Office name field to point to the name instead of ID and after that it seemes to work. i have to redo my queries but everything is working.. thanks for the help!! i made this database about 5 years ago and only use Access like once or twice a year so its always a struggle when things brake.. so fingers crossed whatever i did is all i needed to do to fix it!! Thanks again!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 07-20-2017, 06:07 AM
  2. Why wont my form work?
    By AishlinnAnne in forum Forms
    Replies: 14
    Last Post: 08-19-2016, 09:37 AM
  3. Insert into query that just wont work.
    By todmac in forum Queries
    Replies: 3
    Last Post: 11-26-2014, 03:19 PM
  4. Insert statement wont work
    By todmac in forum Access
    Replies: 1
    Last Post: 09-15-2013, 05:13 PM
  5. DoCmd.MoveSize wont work
    By gbmarlysis in forum Programming
    Replies: 3
    Last Post: 03-02-2012, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums