Search results

  1. D

    Using a multi-instanced form as a child form

    Ok you need: Questions Table * 19 Records, a column for the question #, a column for the question + columns for possible answers Results Table * 19 Columns for answers of question # + Domain (set all the fields to required) Domain Table Although this is a data entry task the table will be...
  2. D

    Using a multi-instanced form as a child form

    I'll have to take your word for it. Personally I would still use a combo box then maybe a listbox or option group in the subform. Are you trying to create a multiple-choice test? If so why don't you ask one question per page? You could select a number of questions randomly and filter the rest...
  3. D

    Using a multi-instanced form as a child form

    He could do this but really he should question why he is using a tab control at all, it is quite messy and it would be better to use a combobox instead. This would save on space. But when you are filtering through records you don't need 'instances' of the same sub interface. The whole point of...
  4. D

    Outlook Attachment Location

    Try something like this: With objMailItem Set objOutlookAttach = .Attachments.Add(strFullName) .body = .body & chr(13) & chr(10) objOutlookAttach.position = len(.body) end with Havent tried it yet but attachment.position sets the position of an attachment in body of the item and is a long...
  5. D

    Sendkeys "{ESC}" closes open form.

    This is not a good way to close a form. Use Docmd.Close acForm, me.Name If you want to cancel on the form unload event place: [code]If MsgBox("Close Form?", vbOKCancel, "Close Form?") = vbCancel Then Cancel = True End If[code]
  6. D

    FileDialog comes up behind form!

    SetTopMostWindow is an api function and therefore you need to import it first in order to use it. I have created a a code module which you could use here
  7. D

    Using Shift And Cancel

    Before_Update is too late to validate information, use it merely for cosmetic things. Use the validation rule poperty of the field in the table.
  8. D

    Using Shift And Cancel

    The second question: Private Sub btReport_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If (Button = acLeftButton) And (Shift = 1) Then DoCmd.OpenReport "Wine samples", acViewPreview ElseIf Button = acLeftButton Then DoCmd.OpenReport "Wine...
  9. D

    barcodes

    You might want to format the field so you begin and end with asterisks. However barcode fonts are not your only option you can use Active-X and even draw the barcode on the report on print. Try this link.
  10. D

    exiting form from keypress event

    try this: RunCommand acCmdSaveRecord
  11. D

    exiting form from keypress event

    It is a good idea to separate data entry and data view, either by using different forms or by switching functions on the same form. Sort out your required fields and validations first. You should really ask the user whether they want to save or not: Select Case MsgBox("Do you want to save...
  12. D

    VB to change box color from check field

    I would do it as an options frame and use a case statement for value. This will be sleaker because you don't need code each checkbox.
  13. D

    Comparing LanUserID to a tblUsers UserID

    This is a bit of a fruitless exercise like ghudson says this will not secure your database. However to log the access passwords with the network passwords is a good way to investigate possible malpractice.
  14. D

    Can anyone see what I'm doing wrong?

    A subform is a control not a form. It is easy to think of it as a form but in reality it is a control on the parent form. You will find it in the controls group not the forms group.
  15. D

    String Concatenation - where did I go wrong?

    Your right on this one modest and I disaggre with rich. Yes it will work if you don't have the .value but it is still better sense. The reason being is a control is an object not a variable (also not all controls are obvious). You don't need to put the .value in brackets because it is not a...
  16. D

    Problems with Hide/Show DbWindow

    :p Like I said if you have real mdi children as is the case with Access 97 (possibly 2000) you have to use that code, if the children are just 'floating' independent then it is as easy as 1-2-3. But never-the-less reports can't be popup because they rely on the mdi parent for the functionality.
  17. D

    Experts- Need Knowledge & Advice

    Ah don't worry about it modest I'm used to it. :o :rolleyes: If you use control instead of object it should take up less memory. Also use 'control.value =' rather than just 'control ='.
  18. D

    Importing Names From Outlook() Using VBA

    You can update your tables programatically, but why bother when they can be linked. The Global Address Book contains the full list of contacts available in all the contacts folders.
  19. D

    Hide importing picture message

    something like: DoCmd.SetWarnings False 'load picture code DoCmd.SetWarnings True Hope this helps
  20. D

    Importing Names From Outlook() Using VBA

    No, this is not the way to go. You can import or link tables using Exchange/Outlook Wizard or create an instance outlook through ActiveX. I have provided an example in the code repository to use a contact name from an address box and with this retrieve the actual email address of the particular...
Back
Top Bottom