Results 1 to 7 of 7
  1. #1
    Philislost is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    4

    form won't save and close


    I have a form with drop down (combo). It is just to restrict the number of selections and reduce the list size. Should be simple but after loads of problems I decided to delete the "Between dates" bit and alow the whole list to appear but now it won't save and close the form. I click close, it asks me if I want to save, I say yes and nothing happens!

    Help

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    hmmm....what's the rowsource of the cbo? is it conflicting with table properties? how did you add the new value? what's the rowsource property? value list or sql statement?

    I'm wondering if it's not saving because you're violating something that is hard to find. e.g. - I write php with mysql and I was having a ridiculous time yesterday trying to figure out why it wasn't appending records in a script I wrote. used the error function, NOTHING.

    turns out, it doesn't give you any information ... the ID field was not set to 'auto increment' so it was rejecting the query because of PK violations!

    make sure you check everything you can possibly think of that's tied to the combo. It's most likely something similar to what I experience with mysql.

  3. #3
    Philislost is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    4
    Currenty the rowsource is SELECT tour.ID, tour.[Tour Name], tour.[Dep Date] FROM tour WHERE (((tour.[Dep Date]) Between [Forms]![Limitdates]![limittostart] And [Forms]![Limitdates]![limittoend])) ORDER BY tour.[Dep Date] DESC;

    but I am not that bothered about limiting the list so I am replacing it with

    SELECT tour.ID, tour.[Tour Name], tour.[Dep Date] FROM tour ORDER BY tour.[Dep Date] DESC;

    Simple? It should be!!!

    I must be blind or stupid cos I can't see anything wrong.

    P

  4. #4
    Philislost is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    4
    One strange thing is that when I try to optimise the database I am told to add an index to the Dep date in the Tour table. BUT this is already indexed. Maybe a connection?

  5. #5
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by Philislost View Post
    One strange thing is that when I try to optimise the database I am told to add an index to the Dep date in the Tour table. BUT this is already indexed. Maybe a connection?
    are you using the performance analyzer to do that? yeah...never heard it do that before.

    I really don't think it has anything to do with the FE/BE combo or a connection that you're talking about. could you upload it maybe?

    if you do upload, make sure to say what form to look at, what to do exactly, etc...

  6. #6
    Philislost is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    4
    Quote Originally Posted by ajetrumpet View Post
    are you using the performance analyzer to do that? yeah...never heard it do that before.

    I really don't think it has anything to do with the FE/BE combo or a connection that you're talking about. could you upload it maybe?

    if you do upload, make sure to say what form to look at, what to do exactly, etc...
    is there an easyway to remove most of the data - its a bit big as it is!

  7. #7
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by Philislost View Post
    is there an easyway to remove most of the data - its a bit big as it is!
    try putting together a function to populate some fake data. either one, or both of these will help you out:

    http://www.ajenterprisesonline.com/_...eleteAllData()

    http://www.ajenterprisesonline.com/_...BackupSource()

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

Similar Threads

  1. Automatically close form in 5 seconds
    By alaric01 in forum Forms
    Replies: 4
    Last Post: 09-21-2010, 04:25 AM
  2. How to Close access form after no activity
    By russ0670 in forum Forms
    Replies: 1
    Last Post: 05-17-2010, 08:17 AM
  3. Close All but One Form
    By Bruce in forum Forms
    Replies: 4
    Last Post: 04-06-2010, 09:31 AM
  4. Replies: 2
    Last Post: 01-29-2010, 11:33 AM
  5. close form
    By taylorosso in forum Forms
    Replies: 5
    Last Post: 08-25-2009, 12:18 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