473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Access 2010: Collect data through email forms

I have an Access 2010 database and am using the feature of collecting data by email. I’m using the InfoPath form as the means of collecting the data. In general, it works well – but I’ve run into 2 issues that I’m hoping for advice on:

1) Is there a way to set the default value for the InfoPath form fields? In Access, I’ve set the default values of 3 of my fields – but this doesn’t carry over to the InfoPath form that gets created by Access when I send the email. Is there another way to set this up?

2) One of the data points that I’m collecting is the Departure Date. This is a date/time field, and I have the format set as a Short date in Access (eg, 9/3/13). When we email the form and try to submit it, InfoPath displays the General Date (eg, 9/3/2013 1:26:18 PM) – and won’t enter this new record into my database due to a “data type conversion error”. I’ve tried changing the Access field to be the General Date format, but I still get the same error. I can submit the form just fine if I don’t enter a date (but I do need to collect the date) – and when I try entering anything into the date field, I get the error upon submission.

I’ve been looking online for solutions to these two issues but haven’t come across anything. Any help would be appreciated! Thank you!
Sep 3 '13 #1
5 6311
jimatqsi
1,271 Expert 1GB
For the date problem, perhaps you are are trying to store the value of the text field holding the date (the "formatted date" which is a string of text) when you should be storing a date value, something defined to be a date type field. Are you using the name of the text box instead of the name of the bound field from the table?

Jim
Sep 3 '13 #2
zmbd
5,501 Expert Mod 4TB
NO, there isn't a lot of documentation about this feature.

YES, The collect information by email feature of Access2010 is absolutly horrid in its design and implementation. You think the infopath forms are bad... try it with the HTML defaults... YUCK.

Unless you can set the default in the infopath form itself, you are most likely out of luck and I haven't found a foolproof method.

What I've found is that if the returned value has anything other than a numeric value (including commas) then the entire thing is treated as if it is a text value - so a date is treated as text on import. The only way I found around this was to push the incoming data into a temporary table, set all of the field types to either numeric or text, and then use VBA to parse the incoming information into the correct table(s) using the type conversion functions (CDATE(), CSTR(), etc...) to get the correct datatype.

I've gotten to the point with this, that I only use it for the most basic of data collection - mainly due to the fact that most of the people I send emails to do not have InfoPath installed so I'm stuck using the HTML option.

/Sorry/ - Wish I had better news.
Sep 3 '13 #3
zmbd
5,501 Expert Mod 4TB
This site may prove interesting...
It goes into some depth on using a simple HTML form to collect the data; however, it also mentions using the CGI or other scripts for fancier forms. May be well worth the read thru - especially as I've learned that ACC2013 may have done away with the built-in data collection by email functionality. The Accces version being demo'd is ACC2000 so there may be some quirks to work out.

Here I'll pull the first little bit over and if you think it worthwhile then follow the link for the rest of the information:
From Access to Automated E-mail
Microsoft Access supports Microsoft Outlook and Microsoft Exchange through the Link Manager. This article shows you how to set up a Web-based system to help automate your e-mail collection using Access 2000, 2002, 2003. Access can work with more than just relational data. In this article, I'm going to show you how to tie Access into Microsoft Outlook. The processes involved are a simple HTML-based form, your e-mail software, Microsoft Outlook, and Microsoft Access. Even if you're completely HTML-clueless, you should be able to set up a complete mail processing Internet application with the material in this article.

Technology Introduction and Resource Files

The processes involved are a simple html based form, your email software, Microsoft Outlook/Microsoft Exchange and Microsoft Access. Unless you develop for a tightly controlled in-house email setup, you will find that the solutions offered here may have to be customized for different sites as each will have their own mail server configuration. All that aside, the processes that you will follow will be similar and the Access software side will be reusable. In this article, I have shown all the examples using Outlook .

This document comes with a download file called Exchange_BE.zip This has an Access 2000 software database called mail-fx.mdb and a HTML document called SoftwareDownload.htm.
Sep 4 '13 #4
Thanks for your responses, jimatqsi and zmbd! I'll have to look at that article and see if I can make it work. I appreciate your help.
Sep 4 '13 #5
zmbd
5,501 Expert Mod 4TB
For some reason, I just knew that it wouldn't be that simple.

I ran across a white paper on this, appears that ACC2010 now uses the MSWord HTML engine an not the IE HTML engine to render the forms; thus, the forms do not render for input as a straight email message.

What you can do is send the HTML form as an attachment, which does open in th the IE/Internet browser. Not the most elegant, however, it does work.

Now the rub here is that if we use the DCBM feature, then the forms do render for input - if if just basic; therefore, there must be a way to get outlook to handle this... I'll look into it a bit more.
Sep 4 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: nick_faye | last post by:
Hi, I hope somebody can help me. I am collecting data from different external ms access database on my VB programming. I am using the SQL command as shown below: While strPaths(iCtr) <> ""...
6
by: Senthil | last post by:
Hi All We are having a VB application on SQL. But we need to collect information from persons who will be offline to verify data and insert new data. Generally they will be entering the data in...
6
by: mulamootil | last post by:
Hi, I have few tables and i am populating them using respective forms. However on one of the tables, there are 10 fields out of which 2 fields, I would like some other user to fill it. Is there a way...
1
by: phill86 | last post by:
Hi, I have an access 2010 database that I want to convert to an SQL Server database and I need to know if the data macros in access will still work in the SQL database or will i have to create...
5
by: jaad | last post by:
Hello, I have a database that was written in access 2007 on my pc. I wanted to work off site with the database so I uploaded it onto my laptop which is loaded with access 2010 beta. When I...
2
by: sierra7 | last post by:
It seems Access 2010 is associating an 'input mask' or field type with a combo box when a form is opened, even though there is no Format setting on the control. I have a form which has been...
2
by: dougancil | last post by:
I have a user who had deleted some records from a database today using Access 2010. They have an ID field that's autonumbered. They have No Duplicates allowed. When they created a new record today,...
1
by: Alan Yim | last post by:
Hi folks, My company recently upgraded our Office suite from 2003 to 2010. The problem in particular is with an Access database that was originally designed in Access 2003. The code in question...
2
by: Bill Boord | last post by:
I need to be able to shut off the AutoCorrect "feature" within Access 2010 code. I have utilized Application.SetOption with method strings for other startup requirements, but I cannot seem to find a...
1
dsatino
by: dsatino | last post by:
I have numerous applications built in Access 2000/2003 that all use ODBCdirect workspaces to access various non-Access databases. Unfortunately, ODBCdirect is 'no longer supported'in Access 2010 and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.