Search results

  1. S

    Passing value from one form to another and generate unique matter id

    In oracle I can do it, however not good in ms access. in oracle usually issue this command: select max(matterid)+1 from matter where clientid=matterid; but don't know how to use this command in access???
  2. S

    Passing value from one form to another and generate unique matter id

    Yes, for clientid I can use autonumber, however for Matterid it should always start from either 0 or 1 for every every client as one client can have many matters, before generating the matteid system should check for clientid and based on that clientid generate matterid, If I use matterid filed...
  3. S

    Passing value from one form to another and generate unique matter id

    Hello everyone Let me first explain what I want to achieve? I have two different forms based on tables 'Client' and 'Matters'. Client table has the following fields: 1-ClientID (primary key) 2-FirstName etc... Whereas the Matter table has the following fields: 1-MatterID 2-ClientID...
  4. S

    Hi John sorry to bother you is it possible, if I send you my db file you have a look and advise...

    Hi John sorry to bother you is it possible, if I send you my db file you have a look and advise me what changes required to achive the required result.
  5. S

    Generate Next Number

    Hi Everyone, I have two tables, Client and Matters. Based on those two table I have two Forms Client and Matters. There is a button on client form when I clik this button it open up the matter form with ClientID. What I want to achieve is when it open matter form like it copies clientID at the...
  6. S

    Help needed to Generate Next Number

    My apology, I missed to attached the file.
  7. S

    Help needed to Generate Next Number

    still unable to achieve the required result. Can someone check the attached db file and advise where I'm wrong.
  8. S

    Data type mismatch in criteria expression

    Can someone check and advise why I'm getting this message. Thankx in advance Private Sub Form_BeforeInsert(Cancel As Integer) Dim db As Database Dim LSQL As String Dim Lrs As DAO.Recordset Set db = CurrentDb()...
  9. S

    Cannot execute s select Query

    Hi all! Can someone view the following qury and advse where I'm wrong cuz when I execute query I'm getting the above message. Private Sub Form_BeforeInsert(Cancel As Integer) Set DB = CurrentDb DB.Execute "SELECT max(tblClientMatter.MatterID) + 1 FROM [tblClientMatter] WHERE " _ & "...
  10. S

    Help needed to Generate Next Number

    Thank you very much K Afridi for your quick response. Can you give some example. thanks
  11. S

    Help needed to Generate Next Number

    Hi Everyone, I have two tables, Client and Matters. Based on those two table I have two Forms Client and Matters. There is a button on client form when I clik this button it open up the matter form with ClientID. What I want to achieve is when it open matter form like it copies clientID at the...
Back
Top Bottom