Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    Actually there will be 7 similar forms with different parameters with save data button and simultaneously there will be a master user form with mobile numbers with check boxes. Each form data will be send as sms to the numbers as in the master form. Say form1 will be having 3 numbers form2 will be having 5 numbers. After the data is saved in each form send sms button will be there to send the sms to the selected users as mentioned in the master.

    This is the actual app need to be created in access


    please help

  2. #17
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    THE CODE I AM USING AFTER BUTTON CLICK TO SEND SMS IS AS FOLLOWS:

    Private Sub Command10_Click()


    Dim strURL As String
    Dim neMb As String
    Dim msGe As String

    Set appIE = CreateObject("InternetExplorer.Application")
    neMb = Me.Number.Value
    msGe = Me.CHECK_SMS.Value


    strURL = "http://bhashsms.com/api/sendmsg.php?user=success&pass=654321&sender=BSHSMS &phone=" & neMb & "text=" & msGe & "priority=ndnd&stype = normal"




    With appIE
    .Navigate strURL
    ' uncomment the line below if you want to watch the code execute, or for debugging
    '.Visible = True
    End With
    ' loop until the page finishes loading
    Do While appIE.busy
    DoEvents
    Loop


    appIE.Quit




    End Sub

  3. #18
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    Actually there will be 7 similar forms with different parameters with save data button and simultaneously there will be a master user form with mobile numbers with check boxes. Each form data will be send as sms to the numbers as in the master form. Say form1 will be having 3 numbers form2 will be having 5 numbers. After the data is saved in each form send sms button will be there to send the sms to the selected users as mentioned in the master.

    This is the actual app need to be created in access
    please help

  4. #19
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    THE CODE I AM USING AFTER BUTTON CLICK TO SEND SMS IS AS FOLLOWS:

    Private Sub Command10_Click()


    Dim strURL As String
    Dim neMb As String
    Dim msGe As String

    Set appIE = CreateObject("InternetExplorer.Application")
    neMb = Me.Number.Value
    msGe = Me.CHECK_SMS.Value


    strURL = "http://bhashsms.com/api/sendmsg.php?user=success&pass=654321&sender=BSHSMS &phone=" & neMb & "text=" & msGe & "priority=ndnd&stype = normal"




    With appIE
    .Navigate strURL
    ' uncomment the line below if you want to watch the code execute, or for debugging
    '.Visible = True
    End With
    ' loop until the page finishes loading
    Do While appIE.busy
    DoEvents
    Loop


    appIE.Quit




    End Sub

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Concatenate text into the expression if you want field names.

    ="Entry Date: " & [Entry_Date] & Chr(13) & Chr(10) & "Shift: " & [Shift] & Chr(13) & Chr(10) & "Status: " & [Status] & Chr(13) & Chr(10) & "Size Dn: " & [Size_Dn] & Chr(13) & Chr(10) & "Gauge Dia: " & [Gauge_Dia] & Chr(13) & Chr(10) & "Load: " & [Load] & Chr(13) & Chr(10) & "Hardness: " & [Hardness] & Chr(13) & Chr(10) & "Time: " & [Time]

    I have no idea how to make the SMS recognize line returns. Unless HTML code tags will work. Then instead of referencing the textbox in VBA:

    msGe ="Entry Date: " & [Entry_Date] & "<br>Shift: " & [Shift] & "<br>Status: " & [Status] & "<br>Size Dn: " & [Size_Dn] & "<br>Gauge Dia: " & [Gauge_Dia] & "<br>Load: " & [Load] & "<br>Hardness: " & [Hardness] & "<br>Time: " & [Time]
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #21
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    Can i give heading in the text box as for which from i am providing the data. as for above example say: "CORE DATA" Before the entry date??

  7. #22
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Concatenate whatever text you want. Follow the syntax provided. Show your attempt if you have issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #23
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    Yes its done. thanks a lot. i am able to send sms to a single number at a time. i want multiple users to send the same sms at a time. is it possible through a master table??

  9. #24
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    What do you mean by 'multiple users to send the same sms at a time'? Did you mean 'send same SMS to multiple numbers'?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #25
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    yes.. exactly.. a master form with multiple users with their phone numbers and form names. say for example form 1 sms will be received by 3 people / form2 sms will be received by 2 people etc. the master form can be edited and addition and deletion is required.

  11. #26
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Certainly most anything can be done with enough code. If you are successfully sending SMS with VBA in Access, pretty proves it.

    VBA can open a recordset of data, cycle through the records and send SMS using info from the recordset.

    I don't know your db structure enough to provide specifics - no idea why there are multiple 'forms'.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #27
    prithwisaha is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2018
    Posts
    25
    I am having multiple forms for multiple data store in db. all are different. I am sending the DB. have a look.

    I am sending a word doc with my requirement:

    Thanks again.
    Attached Thumbnails Attached Thumbnails Capture.JPG  
    Attached Files Attached Files

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Fetch data from website
    By Virgule in forum Macros
    Replies: 2
    Last Post: 03-30-2015, 01:43 PM
  2. Using DLOOKUP to fetch data from table
    By rd.prasanna in forum Access
    Replies: 4
    Last Post: 10-29-2013, 11:23 AM
  3. Replies: 3
    Last Post: 01-17-2012, 01:04 PM
  4. Fetch Data From MS-Access
    By kashif.special2005 in forum Programming
    Replies: 1
    Last Post: 08-27-2011, 05:50 AM
  5. Replies: 6
    Last Post: 04-18-2010, 03:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums