Search results

  1. J

    need subfrms to be nested in main form

    The bonus of not using tab controls is that you can format and colour your forms exactly how you want, without having to have a big ugly grey strip going through your form
  2. J

    using 1 combo box to update many text boxes?

    I have a table of projects, and a table of project coordinators. each exists once within its own table. I have created an intermediate table that sits between the two ie ID, ProjectID, ProjectCoordinatorID That way you can use the intermediate table in queries to achieve for example, a list of...
  3. J

    need subfrms to be nested in main form

    Another way is to draw one subform control on your form and call it ctlDisplay. You will find that you can change its .sourceobject property via code rendering tab controls pretty much obsolete. e.g. Private Sub ViewProjects_Click() Me!ctlDisplay.sourceobject = "FormName" end sub Using a...
  4. J

    copy data form form to form.

    For reference: The correct syntax for copying values from for to form... Forms!Form1.Form!YourFieldName = Forms!Form2.Form!YourFieldName *-)
  5. J

    No decimal places please

    Does anyone know how to programmatically check a field for decimal places? My users will be working in thousands and should only be able to work in thousands. They can currently enter 1.5 into a text box, and I want to catch any potential errors... Any help would be much appreciated
  6. J

    Recordset using sql statement

    Try this ("SELECT count(recordid), [history type] FROM tblHistory WHERE tblhistory![recordid] = '" & Forms!frmMain.Form!ID & "' AND [history type]= '"Compliant "' ") Hows that? [This message has been edited by Jimbob (edited 04-09-2002).]
  7. J

    Copying ImportExport form unsuccessful

    Did you just import a form? If so, chances are there is a module you need to import as well... Sounds like the code behind the form is looking for a Public Sub or Function (Bit of code) that isn't currently in your database...
  8. J

    Create a timer function in a module.

    Don't know if this helps but I use a little form to run all my timer events from. It opens with the db but is minimised, and made so it can't be seen. Go to the form's properties, put a value in the Timer event (default 0) like 5000 for example, then bring up the 'OnTimer' event code window...
  9. J

    Recordset using sql statement

    What kind of field is RecordID? is it a text or number field? it's already referred to as a criteira in the SQL code... I'm a bit confused, can you give me alittle more detail? [This message has been edited by Jimbob (edited 04-08-2002).]
  10. J

    email problems....

    I get an error when I run the following code. The error is "Microsoft Access can't open the mail session. Check your mail application to make sure it's working properly" This is the code: Private Sub Command112_Click() Dim db As database Dim rsEmail As DAO.Recordset Dim strEmail As String Dim...
  11. J

    Recordset using sql statement

    No worries
  12. J

    Recordset using sql statement

    Hmm, can you post your code here? ps I'm in Nottingham too :-) Nice day innit?
  13. J

    Recordset using sql statement

    Have you tried working with the recordset ie populating some text boxes with it's values? I ask this because I have a similar line of code in one of my db's, and although it retrieves records.....the recordcount is always 0, or 1. Odd I know, I'm a bit of a novice so I can't explain this.... I...
  14. J

    Recordset using sql statement

    I'll just have to try again then... try this instead set rsSet = dBase.OpenRecordset("SELECT * FROM tblHistory WHERE recordid = " & Forms!frmMain.Form!ID & " ") if ID is a text field then do this: set rsSet = dBase.OpenRecordset("SELECT * FROM tblHistory WHERE recordid = ' " &...
  15. J

    select

    How many fields are there?
  16. J

    Recordset using sql statement

    try this instead set rsSet = dBase.OpenRecordset("SELECT * FROM tblHistory WHERE recordid = " & Forms!frmMain.Form!ID & " ") if ID is a text field then do this: set rsSet = dBase.OpenRecordset("SELECT * FROM tblHistory WHERE recordid = ' " & Forms!frmMain.Form!ID & " ' ") *-) [This message...
  17. J

    last inserted ID

    Just an idea, but how about adding a Now() field to the table? That way all you have to do is find the record with the latest value in the Now() field and return the ID... ??? [This message has been edited by Jimbob (edited 03-28-2002).]
  18. J

    Insert Data... Urgent Please

    Do you have accecc '97? if so, go to the debug window, tool, references...check your references are like so: Visual Basic for Applications (Ticked and at the top of the list) Microsoft 8.0 Object Library (ticked and second on the list) Microsoft DAO 3.51 Object Library] Has that sorted it...
  19. J

    query

    If you really wanted to you could convert all your queries to SQL strings and call them from vb, i.e. on the 'OnOpen' event of the forms you could open a recordset (using SQL and vb), then use command buttons e.t.c. for moving through the recordset and populating your fields from the recordset...
  20. J

    Insert Data... Urgent Please

    Thanx Fizzio... Has that fixed it Haytham?
Back
Top Bottom