venerdì 30 maggio 2008

MS WORD VBA: Retrieving Current Paragraph Number

Use this:
Dim num As Long
num = ActiveDocument.Range(0, Selection.Paragraphs(1).Range.End).Paragraphs.Count

MS ACCESS: When Access Doesn't Create MDE

Try this:
- Run MSACCESS.EXE /decompile
- Edit a form that contains a code/event
- On Microsoft VB code click Debug then Compile the project
- this will remove all the unnecessary codes.
- Save it back then recreate an MDE