Search results

  1. Fornatian

    Date Month, just stuck

    >=DateAdd(-2,"m",Date)
  2. Fornatian

    Stock Take HELP?

    This topic has been discussed in depth on this forum many times. Do a search for 'stock' posts, the answer is there.
  3. Fornatian

    A piece of code could do?

    Why not use a linked table with an update query if the data 'needs' to be imported ?
  4. Fornatian

    Creating a database using code

    Bert and ernie shared a bed as I recall, with a rubber duckie. How broad minded. For further character lists see: http://www-cs-students.stanford.edu/~csilvers/muppet-characters.html
  5. Fornatian

    Creating a new Database

    Presumably, the text file indicates the dataset date, if it doesn't you can use the FileDateTime function to return the creation/last modification date of the file. Including this in a recordset update loop for each file would allow you to assign this to a particular field. You could then...
  6. Fornatian

    enter parameter error

    If IsNull(Fld1) Or IsNull(Fld2) Or IsNull(Fld3) then Msgbox "Some Values Missing - do nothing" Else 'run your code here End if
  7. Fornatian

    Problem: Highlighted record in Subform when opened

    Would changing the settings under Tools>Options>Keyboard help?
  8. Fornatian

    Closing form back to the right path.

    This could be standardised even further using DoCmd.OpenForm "CalledForm", , , , , , Me.Name
  9. Fornatian

    Pictures in reports

    Add a picture table to your database with two fields, key(primary key text) and path(text)). The key will be the course identifier and path is a string location of the file. Assuming the size of the picture table is quite small you can use a DLOOKUP function to retrieve the value...
  10. Fornatian

    Creating a database using code

    There'd certainly be a 'big bird'. Maybe 'grouch' could be the obligatory moustached dude.
  11. Fornatian

    Creating a database using code

    It's forn(ic)atian street I've been waiting for :D
  12. Fornatian

    Cannot avoid Warning on NoData

    As I recall the error is caused by the calling form having not completed it's action NOT the OnNoData event, you need error trapping in your button for error(hint: use Msgbox Err.Number to establish the error number to catch). I think it's either 2501 or 2051, I never remember. :)
  13. Fornatian

    Creating a database using code

    Use the createdatabase method to create a database of your choosing(you'll have to check that it doesn't already exist first). There are quite good examples in help.
  14. Fornatian

    whats wrong with this code ?

    You don't need to include it in your result set, its just criteria - exactly the same as when you don't display the criteria column in the QBE grid by unticking the box under it.
  15. Fornatian

    Changing the Caption of a Label in a Report using Code.

    If you used text boxes as Rich suggests you could set the source to an expression suchas =Format(DateAdd("m",x,Me.OpenArgs),"mmm-yy" where x = an integer from 1 -12 dependent on how many months to calculate forward Header_Update_Date is passed as the OpenArgs value in the...
  16. Fornatian

    How to write SQL statements in codes?

    It seems to me you need data validation using the before update event to cancel the record being saved if the user does not complete fields. There are many posts on this forum explaining how to do this.
  17. Fornatian

    Print 2 reports before printing the next record

    Could you just tag page two on the end of the first page and insert a page break. Thinking sideways, could you have Page 2 pre-printed on the back of page 1's source paper? If these aren't feasible, then the only alternative is to change the report to return only one record at a time then...
  18. Fornatian

    How to write SQL statements in codes?

    In many instances where people write an SQL Statement, there is no need to, instead use a presaved update query and run that from your code: Docmd.OpenQuery "QueryName" The next question usually posted is how do I stop it notifying me that it has updated a record, this is done by surrounding...
  19. Fornatian

    Save As MDB files

    You can't save the database under another name whilst it is still open as far as I know, so the only alternative I can think of is to import the entire DB and relationships into an empty shell or rename the file to reclaim the mdb extension. Such a task would be accomplished by: Name file.zlh...
  20. Fornatian

    RunSql vs Open Query

    Query Optimization Tips... 1. Display the minimum number of fields in a query. Set criteria dependant fields that are not required in the dynast to "not shown". 2. Index all restriction based fields, all fields included in expressions, all sorted fields and all join fields. 3. Use primary...
Back
Top Bottom