Резултати от 1 до 3 от общо 3

MS Access с изход към e-mail

Сподели във Facebook Сподели в Twitter Изпрати на Email Сподели в LinkedIn
  1. Junior Member
    Тук е от
    Sep 2004
    Мнения
    135
    #1

    MS Access с изход към e-mail

    Не знам дали е тук подходящото място, но все пак я пускам тук.
    Та въпроса е как да накарам MS Access да изпраща по пощата последно въведените записи.
    Записите се въвеждат с форма в една таблица.
    Целта е да изпратя всички полета от формата заедно със записването им в таблицата.

    Ако знаете как, моля обяснявайте като на начинаещ потребител.

  2.  
     
  3. Moderator
    Тук е от
    Mar 2005
    Мнения
    7,189
    #2

    Re: MS Access с изход към e-mail

    Copy/Paste от Help-а
    Код:
    SendObject Method
    See Also  Applies To  Example  
    Specifics
    The SendObject method carries out the SendObject action in Visual Basic.
    
    expression.SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject, MessageText, EditMessage, TemplateFile)
    expression  Required. An expression that returns one of the objects in the Applies To list.
    
    ObjectType Optional AcSendObjectType.
    
    AcSendObjectType can be one of these AcSendObjectType constants. 
    acSendDataAccessPage 
    acSendForm 
    acSendModule 
    acSendNoObject default 
    acSendQuery 
    acSendReport 
    acSendTable 
    
    ObjectName Optional Variant. A string expression that's the valid name of an object of the type selected by the objecttype  argument. If you want to include the active object in the mail message, specify the object's type with the objecttype  argument and leave this argument blank. If you leave both the objecttype  and objectname  arguments blank (the default constant, acSendNoObject, is assumed for the objecttype  argument), Microsoft Access sends a message to the electronic mail application without an included database object. If you run Visual Basic code containing the SendObject method in a library database, Microsoft Access looks for the object with this name first in the library database, then in the current database.
    
    OutputFormat Optional Variant.
    
    To Optional Variant. A string expression that lists the recipients whose names you want to put on the To line in the mail message. Separate the recipient names you specify in this argument and in the cc  and bcc  arguments with a semicolon (;) or with the list separator set on the Number tab of the Regional Settings Properties dialog box in Windows Control Panel. If the recipient names aren't recognized by the mail application, the message isn't sent and an error occurs. If you leave this argument blank, Microsoft Access prompts you for the recipients.
    
    Cc Optional Variant. A string expression that lists the recipients whose names you want to put on the Cc line in the mail message. If you leave this argument blank, the Cc line in the mail message is blank.
    
    Bcc Optional Variant. A string expression that lists the recipients whose names you want to put on the Bcc line in the mail message. If you leave this argument blank, the Bcc line in the mail message is blank.
    
    Subject Optional Variant. A string expression containing the text you want to put on the Subject line in the mail message. If you leave this argument blank, the Subject line in the mail message is blank.
    
    MessageText Optional Variant. A string expression containing the text you want to include in the body of the mail message, after the object. If you leave this argument blank, the object is all that's included in the body of the mail message.
    
    EditMessage Optional Variant. Use True (–1) to open the electronic mail application immediately with the message loaded, so the message can be edited. Use False (0) to send the message without editing it. If you leave this argument blank, the default (True) is assumed.
    
    TemplateFile Optional Variant. A string expression that's the full name, including the path, of the file you want to use as a template for an HTML file.
    
    Remarks
    For more information on how the action and its arguments work, see the action topic.
    
    Modules can be sent only in MS-DOS Text format, so if you specify acSendModule for the objecttype argument, you must specify acFormatTXT for the outputformat argument.
    
    To send a snapshot, set the ObjectType argument to acSendReport and the OutputFormat argument to acFormatSNP.
    
    You can leave an optional argument blank in the middle of the syntax, but you must include the argument's comma. If you leave a trailing argument blank, don't use a comma following the last argument you specify.
    
    Example
    The following example includes the Employees table in a mail message in Microsoft Excel format and specifies To, Cc, and Subject lines in the mail message. The mail message is sent immediately, without editing.
    
    DoCmd.SendObject acSendTable, "Employees", acFormatXLS, _
      "Nancy Davolio; Andrew Fuller", "Joan Weber", , _
      "Current Spreadsheet of Employees", , False

  4. Junior Member
    Тук е от
    Sep 2004
    Мнения
    135
    #3

    Re: MS Access с изход към e-mail

    Благодаря на всички за помощта.
    Help-a го бях прочел, но не бях светнал, къде да го сложа, за да изпраща писмото едновременно със записа на данни.
    Сега вече се оправих. Вързах процедурата за изпращане на писмо директно към формата за запис на данни.

Сподели във Facebook Сподели в Google Plus Сподели в Twitter Изпрати на Email Сподели в LinkedIn

Подобни теми

  1. Програма за едновременен изход към VGA и TV
    От mobil във форум Общ - софтуер
    Отговори: 9
    Последно: 22-05-06, 17:33
  2. SPDIF и AC3 изход
    От Pat във форум Аудио и Видеокарти
    Отговори: 9
    Последно: 20-04-06, 23:50
  3. Проблем с TB изход
    От Tyna във форум Аудио и Видеокарти
    Отговори: 0
    Последно: 04-03-06, 18:49
  4. Проблем с TV-изход
    От Tyna във форум Аудио и Видеокарти
    Отговори: 7
    Последно: 04-08-04, 08:07

SetCombG.com
SetCombG.com е портален сайт и Форум за битова техника, телевизори, климатици, лаптопи и смартфони, създаден през 1999 година.
Заедно сме над 20 години!
Следвай ни
Горе