Search results

  1. Solo712

    A better way than a bunch of If-Then DLookUp's

    Colin, I am not familiar with an Access function "ShowControls". Or is that something you have created, and if so, would you like to show us what it is before arguing its merits? Thx. Best, Jiri
  2. Solo712

    A better way than a bunch of If-Then DLookUp's

    I have read the OP and consider the following the gist of the matter: As I pointed out most likely the reason (or the main reason) the processing is slow is that you have to vary the [ControlAuto] variable outside the sub and engage the dlookup test code seventeen times, making sixteen...
  3. Solo712

    A better way than a bunch of If-Then DLookUp's

    Yeah, the OP code is strange in that it controls 17 switches by a value of single variable (or field). So where is the [ControlAuto] value set ? It cannot carry both the value of 10 and 11 on a single pass through the sub. That means that the routine is called 17 times to pick a single value...
  4. Solo712

    Different Saves

    I suspect the facility of saving design changes at run time was meant above all for projects where controls are built dynamically during a session. Cheers, Jiri
  5. Solo712

    copy current database

    Hi, have you tried to find out what the path name looks like by putting a watch on it and break the code before the error occurs? Incidentally, you may be better off referring to your path as Application.CurrentProject.path which takes care of the possibility the path changes with different...
  6. Solo712

    SQL Server backend problem

    Check this, https://stackoverflow.com/questions/3560173/store-arabic-in-sql-database Best, Jiri
  7. Solo712

    Reference parent form in DLookup Criteria

    Hi, I checked my subforms referencing guide (which has yet to let me down) : http://access.mvps.org/access/forms/frm0031.htm, and if I read your design correctly you might want to try a small change in notation: =DLookUp("Unit","tblData","Category='" & [cboCategory] & "' AND Stage='" &...
  8. Solo712

    Validating data in one field based on data in another field

    You can check the valid form by placing this into the form's BeforeUpdate event. You might need further checking for numeric validity, but this provides the basic test you are asking for. Sub Form_BeforeUpdate(Cancel As Integer) Dim i as Long i = Len(Me!Dimensions) -...
  9. Solo712

    Managing mandatory fields in data entry forms

    Generally speaking, data checking for all fields is best done via the form's BeforeUpdate event. This event is triggered automatically when you attempt to step off the record or by a save command. See here for examples how to verify that entries on the form are valid. As for highlighting...
  10. Solo712

    Create Recurring Events

    Should be: If DatePart("m", CounterBack) = DatePart("m", Me.cboStart) Then Best, Jiri
  11. Solo712

    Cannot assign a value

    This error sometimes happens if your Control Source (on the Properties Data Tab) does not agree with the Name (on the Properties Other Tab). Specifically, you need to refer to the Mil_Lic field by its "Name" ! Don't know if this you problem but check anyhow! Best, Jiri
  12. Solo712

    Unrecognized database format message

    I get this message sometimes when I copy a db to a different machine with a different (,usu lower,) version of Access. It looks scary but it goes away when I decompile and recompile the Front End. Best, Jiri
  13. Solo712

    Moving Backend - Need to change data in multiple tables

    Obviously, you have to use a routine to find the current back end to your database, if that is where your resource files are. Here is my clumsy way of doing it: Public Function GETBEPath() As String Dim strConnect As String, lngPos As Long strConnect = GetConnectString '...
  14. Solo712

    loop wthout do error

    Assuming that the Date is correct format ("mm/dd/yyyy") then the above red edits should fix your problem with the do loop. Not sure if that is the end of your problems. Best, Jiri
  15. Solo712

    Severe problems after Win 10 & Office 365 update

    You are welcome.
  16. Solo712

    Moving Backend - Need to change data in multiple tables

    Hi, the simplest way I know to handle "resource files" (if that is what they are) is to have them in directories relative to the database location. Then when you move the database (the Front End I assume) you move the resource files into the same relative location. You do not have to...
  17. Solo712

    Severe problems after Win 10 & Office 365 update

    Hi Frank, whenever I run into the "unrecognized format" issue after I port my app into a new machine, newer OS or Access version the first thing I do is decompile and recompile. This usually fixes it. I don't know if this will solve your problem, but if you hadn't already give it a try...
  18. Solo712

    Employee Table

    Yes, that's the idea ! Best, Jiri
  19. Solo712

    Dlookup problem

    Probably, the red is your problem. It's not a field name... Best, Jiri
  20. Solo712

    Brainstorming - Open for Suggestions

    Not knowing your setup, I am not sure. Normally, the matching of the vendor/job (partdesc code, purchase price(?)) would be done through purchase order module. Best, Jiri
Back
Top Bottom